Search code examples
file-management

How do I open multiple files from lf file manager?


I use the space key to select multiple files but then when I do :open it only opens one of then (despite multiple being selected). I find it strange because the space key seems to work fine for other operations like copying and pasting multiple files. I took a look at their documentation but haven't found anything specific to this issue.


Solution

  • Create custom open command and supply multiple arguments with $fx instead of a single argument with $f.

    $f: Current file selection as a full path.

    $fx: Selected file(s) (i.e. 'fs') if there are any selected files, otherwise current file selection (i.e. 'f').

    See Opening Files documentation.