Skip to content
This repository has been archived by the owner on Jul 20, 2024. It is now read-only.

Refine behavior when cursor is in the middle of a path #6

Open
b0o opened this issue Aug 24, 2021 · 0 comments
Open

Refine behavior when cursor is in the middle of a path #6

b0o opened this issue Aug 24, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@b0o
Copy link
Owner

b0o commented Aug 24, 2021

In the case that the cursor isn’t at the end of a path:

/usr/local/foo/bar
          ^
          cursor

The current behavior is to use the full path as the zfzf target. Other options include:

  • Only use the left-hand side (lhs), then re-append the right-hand side (rhs) after selection
  • Ignore the rhs
  • Use the lhs as the target, but only show subdirectories of the lhs that contain the path on the rhs (either as a direct or distant descendant). Similar to /usr/local/**/foo/bar.

Ideally, zfzf intelligently picks the option that makes the most sense based on context. And/or we could add new parameters to explicitly specify the desired behavior.

@b0o b0o added the enhancement New feature or request label Aug 24, 2021
@b0o b0o self-assigned this Aug 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant