elfmz / far2l

Linux port of FAR v2
GNU General Public License v2.0
1.75k stars 171 forks source link

[improvement behavior] far2l as standalone editor/viewer (far2ledit, far2l -e and far2l -v) #1624

Open akruphi opened 1 year ago

akruphi commented 1 year ago

1) When run far2ledit, far2l -e and far2l -v do not search and suggest restore previous immortal far2l.

2) Please add in CMakeLists.txt creation symlink far2ledit (in code far2ledit was add after #1223). Also may be add code and symlink far2lview for far2l -v <filename> (not for far2l -v -)?

3) In debian/ubuntu alternatives make for default editor symlinks /bin/editor, /usr/bin/editor and /etc/alternatives/editor, and should name editor in far recognize also as far2ledit.

4) Also will be fine that far2ledit recognize update-alternatives --list editor и select-editor and far2lview recognize update-alternatives --list view because without it now I need manually write export EDITOR=/usr/bin/far2ledit either in ~/.profile, or in ~/.bashrc, or in ~/.ssh/environment, or directly with run sudo EDITOR=/usr/bin/far2ledit crontab -e

May be @alexmyczko give advice what need in deb for it recognize in update-alternatives and select-editor.

akruphi commented 1 year ago

When run sudo EDITOR=/usr/bin/far2ledit crontab -e if in system setup far-gui then editor open in new GUI-window (with strange sizes), while others (nano, mcedit, ...) open in terminal open in the same terminal window. I have not opinion about good it feature or not, but it confusing at first.