coda-vi

1.0.0 • Public • Published

Vi Plugin

Downloads Downloads NPM Version Dependencies Dev Dependencies License

Plugin to add a vi editor to terminal-in-react

Install

npm i -S terminal-in-react-vi-plugin
yarn add terminal-in-react-vi-plugin

Usage

The plugin requires a file system plugin to work. Currently terminal-in-react-pseudo-file-system-plugin is the only one available. You have to pass the name of the file system plugin as a config option.

import ViPlugin from 'terminal-in-react-vi-plugin';
import pseudoFileSystemPlugin from 'terminal-in-react-pseudo-file-system-plugin';
const FileSystemPlugin = pseudoFileSystemPlugin();

...
<Terminal
  plugins={[
    FileSystemPlugin,
    {
      class: ViPlugin,
      config: {
        filesystem: FileSystemPlugin.displayName
      }
    }
  ]}
/>
...

Commands

The commands it adds are:

  • vi

TODO

  • [x] Edit a file
  • [ ] Vi shortcuts
  • [ ] Save temp file

Package Sidebar

Install

npm i coda-vi

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

11.5 kB

Total Files

7

Last publish

Collaborators

  • codabool