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

Use initial query as pre-filter expression over mark names if provided #57

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bmundt6
Copy link

@bmundt6 bmundt6 commented Mar 4, 2022

With this update, an additional pass of fzf in filter mode runs on the marks list, fuzzy-matching field 1 (mark name) against the strings provided on the command-line, if any. Then, the scope of the interactive search is limited only to bookmarks matching the query, and the initial query string is always empty.

This pairs well with #55 and with command-line TAB completion, since any string provided in the initial fzm call is always understood to be some part of a mark name, not a path component. A basic example use case: suppose I have marks foo and foobar among others and I begin typing jump fo. Then I hit TAB, and the command-line becomes jump foo. Then, I hit enter, and fzm shows me only two options to select from, foo and foobar, no matter what path components in other marks might also match the string foo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant