Bastien Roucariès <ro...@debian.org> writes: > Sensible-editor could now use EDITOR="emacsclient -n -c" and accept > that sh -c accept > > My goal is to create a sensible-editor.desktop that will lauch by > default the sensible-editor of choice > > For this I plan: > - to allow by alternative mechanism to have an sensible-editor-tty > (may be better wording) sensible-editor-$XDG_CURRENT_DESKTOP > in order to allow default customization > - SENSIBLE_EDITOR is not set, sensible-editor will first try > sensible-editor-$XDG_CURRENT_DESKTOP XDG_CURRENT_DESKTOP (if > $XDG_CURRENT_DESKTOP > is set) then sensible-editor-tty (using if needed sensible-terminal) >
Can you set out how this affects users If i am using gnome, i want something pretty simple a) opening a file with the mouse should use gnome's default (which can change in settings) b) but if im in a terminal (even if running in gnome) then i want a terminal-based editor (based on what i installed) (b) also means no failures if i get a dpkg "edit conffile" situation while upgrading -- graphical editors may fail to start, or i might be on the linux console when dist-upgrading. i think this all works great today, will it still work with your proposal? what extra cases are you proposing to support? > I will also like to allow sensible-editor-STUFF to support +4:3 FILE > command line, so > editor +4:3 somefile.txt will open somefile.txt and if possible go to > line 4 column 3 (and silently ignore if not possible) > sounds great (and separate to the above), although i wonder how you will tell whether the underlying editor supports it.