markdown-input icon indicating copy to clipboard operation
markdown-input copied to clipboard

Edit all fields in the external window + VIM Mode CodeMirror

Open navakelvin opened this issue 3 years ago • 4 comments

TL;DR:

  • [x] Edit all fields in the external editor
  • [ ] Vim Mode for Code Mirror Editor

Request 1

Is it possible that you can implement editing of all fields in the external window?

The idea is that each field is represented by a header, and the text under the header is the content of the field.

This will allow you to edit the letter in its entirety in a very pleasant way.

Example: image

Request 2

On the other hand, I see that you use CodeMirror as editor. Is it possible that you can implement VIM mode?

navakelvin avatar Feb 18 '23 15:02 navakelvin

Thanks for the suggestions:

  • The "all in one dialog" doesn't seem too tricky
  • With VIM-mode do you mean using something like this?

Unfortunately I am a bit short on time, maybe at a later date or if you want to make a PR?

triaeiou avatar Mar 11 '23 22:03 triaeiou

For info, you could try to use the curren main, I am testing some new changes, including the option to open the entire note in the external editor. Let me know if it works the way you expect.

triaeiou avatar Mar 19 '23 21:03 triaeiou

A while has passed.

Yes, with VIM i mean implementing the VIM mode in the codemirror editor, which can be implemented with the library you mention.

Since it's not useful for everyone, you could put a boolean in the settings to enable it or not.

Thanks for your effort btw, I saw that you implemented the editing of all the fields at the same time. That is fantastic.

navakelvin avatar Mar 24 '24 16:03 navakelvin

If you want some inspiration or code reuse to implement VIM Mode to the editor you could look at: https://ankiweb.net/shared/info/1043915942 https://github.com/ijgnd/anki__editor_edit_html_extended

navakelvin avatar Mar 27 '24 20:03 navakelvin