realmazharhussain / nautilus-code

Extension for Nautilus (GNOME Files) which adds right-click menu items to open current folder in code editors e.g. VSCode, GNOME Builder
79 stars 8 forks source link

Add editors #11

Open ParaplegicRacehorse opened 1 year ago

ParaplegicRacehorse commented 1 year ago

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

realmazharhussain commented 1 year ago

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.

ParaplegicRacehorse commented 1 year ago

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.