Skip to content

Focusing with ctrl-f shouldn't keep the search pattern #994

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

Open
Canop opened this issue Mar 24, 2025 · 0 comments
Open

Focusing with ctrl-f shouldn't keep the search pattern #994

Canop opened this issue Mar 24, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@Canop
Copy link
Owner

Canop commented Mar 24, 2025

When searching on a path, and focusing a deep file, we often end up without the deep file matched because its path relative to the new root doesn't match anymore.

Moreover, it's easy to search again now that broot has ctrl-f.

Focusing a deep path should:

  • make the closest directory the new root (no change from current behavior)
  • remove any search pattern (it can be restored with ctrl-f)
  • try select the path which was selected before focus
@Canop Canop added the enhancement New feature or request label Mar 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant