Add a selection mode
When working with lf I prefer to have it use only the selections I made in the current directory.
selmode string (default 'all')
Selection mode for commands.
When set to 'all' it will use the selected files from all directories.
When set to 'dir' it will only use the selected files in the current directory.
Use case: I often forget to clear selections before selecting files in the current directory and have to start over or (worst case) deleted some files by mistake.
This is sorely needed, I just tested this, wasn't even aware of this weird behaviour, selection mode should be 'dir' by default indeed. This can really lead to some really nasty surprises.
@rafcon-dev as I understand it gokcehan is busy with things in real life ... just fyi because I saw you commented on other issues as well.
Thank you for the fyi mate. Yeah, such is life indeed, hopefully they'll find some time once things are sorted out!
Responding to https://github.com/gokcehan/lf/discussions/950
@gokcehan Selection mode in https://github.com/gokcehan/lf/pull/849 has been quite fundamental to lf so far so I fear it might double our reported issues somehow.
I don't quite understand that connection. Are you talking about users not understanding the option? It's off by default.
@laktak Thanks for the patch.