cknadler / vim-anywhere

Use Vim everywhere you've always wanted to
MIT License
3.67k stars 146 forks source link

Content of text fields for editing are not loaded into vim #71

Closed schlueter closed 6 years ago

schlueter commented 6 years ago

For example, if I wanted to edit this issue with vim, I would use the shortcut I set up and I expect this text to be present in editor when it starts; however, it is not, the buffer is empty.

Not to be a complainer (I love the idea of this), I realize this will be difficult to make work for all input fields. Various system's accessibility apis expose this information, so maybe something could be done with that?

I do realize that a trivial workaround is to to select the entire text field, copy, activate vim anywhere, and paste, but this is many steps, and context–such as cursor position–is lost.

  1. Be in app, see something that needs editting
  2. ctrl+a
  3. ctrl+c
  4. ctrl+alt+v
  5. p
  6. find thing that needs editting again
  7. place cursor

versus

  1. Be in app, see something that needs editing
  2. place cursor
  3. ctrl+alt+v

Potentially, the same accessibility apis may allow the original text field to be populated simultaneously with the vim buffer (I recall a browser plugin+editor plugin that required this sort of information exchange to update css live as it was editted in vim or sublime).

schlueter commented 6 years ago

Closing as dup of https://github.com/cknadler/vim-anywhere/issues/31