nautilus-code icon indicating copy to clipboard operation
nautilus-code copied to clipboard

Add editors

Open ParaplegicRacehorse opened this issue 2 years ago • 2 comments

I'm vaguely surprised at the following missing editor options:

  • $VISUAL
  • $EDITOR
  • emacs
  • vi / vim / neovim

ParaplegicRacehorse avatar Nov 20 '22 17:11 ParaplegicRacehorse

This extension adds menu entries for programs written specifically for coding.

It does not make sense to open a folder in nano and since in a lot of cases EDITOR=nano, it does not make sense to open a folder in $EDITOR either. $VISUAL is a similar case.

As with emacs & vim, with their default configuration, it doesn't make sense to open a folder in them either. But I do know that there are plugins which turn them into fully-fledged code editors. So, I don't know what to do here.

Maybe, I could add the ability to add user-specified entries to the menu. We'll see.

realmazharhussain avatar Nov 21 '22 05:11 realmazharhussain

As with emacs & vim, with their default configuration, it doesn't make sense to open a folder in them either.

This may or may not be the case with vi(m). The default config for emacs does most of what any dedicated-IDE does in its default config. In all cases, any developer (or serious author of prose) is likely to have already heavily customized their preferred editor environment.

I could add the ability to add user-specified entries to the menu.

This would work very well. Further, it would mean you no longer have to hard-code editor support into the plugin.

ParaplegicRacehorse avatar Nov 23 '22 18:11 ParaplegicRacehorse