Skip to content

Improve selection #834

@freijon

Description

@freijon

Please describe the problem you're trying to solve

I'm using tabs a lot. I think the solution in xplr is really neat. Selection is global across all tabs & panes. You even have a selection view where you can see which files have been selected. The selected files are also available in an environment variable for convenience (e.g. for use in a shell). You can perform mass actions on these selections. I'd like to see something similar in yazi

Would you be willing to contribute this feature?

  • Yes, I'll give it a shot

Describe the solution you'd like

  1. Be able to select files globally (across tabs / folders) and use them with the already implemented $@, $1, $2, ...
    By folders I mean you should be able to select files in the same tab, but in different locations (e.g. in /home and /tmp). In short: Make selections global.
  2. "Cancel selection" should also work globally (but probably it would have to be something different than the default Esc key?)
  3. Having a floating selection window (similar to the task window (w key)) could be useful to see what files you have selected over all contexts. In this window you could deselect individual files (or everything).
  4. Put selected files in an environment variable for use with other tools
  5. Having a "selection counter" (if >0) could be useful somewhere in the UI (top right?).
  6. I see a synergy with selection with fzf, carried on yazi ? #613 - We could use fzf to select multiple files which are not located in the same folder (e.g. launch fzf in the homedir and select all .png files located somewhere in the homedir)

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions