XeFM can hand files straight to your text editor. Put the cursor on a file —
or select several with Space — and press E: XeFM steps aside while the
editor runs and comes back automatically when you save and quit. Any editor
that takes filename arguments works.
E. With a selection, every selected file is passed to the editor in
one launch (vim a.txt b.txt), so you get one session over all of them.Editing is available for local files only. Directories (and the .. parent)
can’t be edited, and a warning is shown if you try; in a mixed selection they
are simply skipped. E is rebindable via the edit_file action in your
config’s KEY_BINDINGS.
When you press E, XeFM picks the editor like this:
edit entry in FILE_ASSOCIATIONS wins — so you can send,
say, images to an image editor and .md files to a Markdown app. If an
entry is set explicitly to None, that file type has no editor and XeFM
won’t fall back. See File Associations.TEXT_EDITOR setting is used.Set TEXT_EDITOR in ~/.xefm/config.py:
class Config:
TEXT_EDITOR = 'nano' # your preferred editor
The shipped default depends on how you run XeFM: vim in a terminal, and VS Code
(code) in the desktop app. Common choices include vim, nano, emacs,
code (VS Code), subl (Sublime Text), and gedit. In terminal mode, prefer a
terminal editor (vim, nano, emacs) so it can take over the screen; in the
desktop app, a GUI editor works well.
If the configured editor can’t be found or exits with an error, XeFM reports it and restores the file view.
TEXT_DIFF sets the external merge / diff toolV