@dalto I use popsicle and it is very good, thanks to you!
Another application that I use a lot to edit files is easy editor
(ee) a FreeBSD tool, is in AUR.
For example:
# ee .xinitrc
→and then this unfolds:
^[ (escape) menu ^e search prompt ^y delete line ^u up ^p prev page
^a ascii code ^x search ^z undelete line ^d down ^n next page
^b bottom of text ^g begin of line ^w delete word ^l left
^t top of text ^o end of line ^v undelete word ^r right
^c command ^k delete char ^f undelete char ESC-Enter: exit ee
=====line 1 col 0 lines from top 1 ============================================
#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fi
xrdb -merge ~/.Xresources
###exec mate-session
exec startxfce4
To close the editor, simply press the Esc key:
^[ (escape) menu ^e search prompt ^y delete line ^u up ^p prev page
^a ascii code ^x search ^z undelete line ^d down ^n next page
^b bottom of text ^g begin of line ^w delete word ^l left
^t top of text ^o end of line ^v undelete word ^r right
^c command ^k delete char ^f undelete char ESC-Enter: exit ee
=====line 1 col 0 lines from top 1 ============================================
#!/bin/sh
#
# ~/.xinitrc +---------------------+
# | main menu |
# Executed by startx | |
| a) leave editor |
if [ -d /etc/X11/xinit/xinitrc.d ]; t | b) help |
for f in /etc/X11/xinit/xinitrc.d/* | c) file operations |
[ -x "$f" ] && . "$f" | d) redraw screen |
done | e) settings |
unset f | f) search |
fi | g) miscellaneous |
| |
| press Esc to cancel |
xrdb -merge ~/.Xresources +---------------------+
###exec mate-session
exec startxfce4
and then the Enter key. → Done!
It is much easier to use, than for example nano. 