[under development] an Optic plugin for vim
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
doc
lib
plugin
LICENSE
README.md

README.md

Test Cases

https://github.com/opticdev/optic-editor-plugin-spec

Starting Optic

==============

* Editor Started. Wait 10 seconds. Start Optic. Within 10 seconds editor should connect to Optic.

* Editor is connected to Optic. Optic is turned off. Wait 10 seconds. Start Optic. Within 10 seconds editor should connect to Optic.

Monitoring Editor Events

========================

* Editor is connected to server.

* Click somewhere in a file, Optic event sent with the new range to server

* Use arrow keys to navigate around a file, Optic event sent with the new range to server

* Select text by dragging a range, Optic event sent with the new range to server

* Text is [added, deleted], Optic event sent with new range and content to server

Capturing Search

================

* Editor is connected to server.

* Type '///query', Optic search event sent, no context event sent.

* Type '//query', Optic context event sent, no search event event sent.

* Write normal code, Optic context event sent, no search event event sent.

File Staging Events

===================

* Optic is connected to server.

* Receives an update event with 3 file changes. All tabs update their contents

* Receives an update event with 1 file (that is closed). That file opens in a new tab with updated content

Ideas / Questions:

==================

* Use this instead of python? https://github.com/bryphe/vim-electrify

* Having files open in tabs isn't great for a vimmer. Maybe a quickfix list to

open them from?

* Can we do level of buffer insertion that we want based on the buffer.insert

info here: https://zerokspot.com/weblog/2009/02/21/getting-to-know-vims-python-interface/