Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save and restore explorer branches (close to bookmarks) #928

Open
2 tasks done
echasnovski opened this issue May 31, 2024 · 0 comments
Open
2 tasks done

Save and restore explorer branches (close to bookmarks) #928

echasnovski opened this issue May 31, 2024 · 0 comments
Labels

Comments

@echasnovski
Copy link
Owner

Contributing guidelines

Module(s)

mini.files

Description

Consider adding functions and mappings for saving and restoring explorer branches for quick navigation to known destinations.

Common problem during file system manipulations is the need to hhhhjjjllll in order to navigate back and forth between two directories. This can be solved by "save current branch under identifier x" and "restore branch under identifier x" actions. Similar to how built-in marks work inside and across files.

Saving branches (like { '/home/user/.config', '/home/user/.config/nvim' }) instead of single destination directory (like '/home/user/.config/nvim') seems to both provide more flexibility and be more aligned with internal implementation.

This can also solve the problem of #572 by saving predefined set of branches inside autocommand for MiniFilesExplorerOpen event.

Notes:

  • Usual issue of "it can need a lot of new lines (code + doc + tests)" is very valid here. So it can still be deemed too much.
  • Default mapping keys maybe can be m and ' to mimic built-in marks.
  • I don't think having get_branch() and set_branch() are necessary for this.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant