Skip to content

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

Open
bmundt6 wants to merge 1 commit into
urbainvaes:masterfrom
bmundt6:query-as-pre-filter
Open

Use initial query as pre-filter expression over mark names if provided#57
bmundt6 wants to merge 1 commit into
urbainvaes:masterfrom
bmundt6:query-as-pre-filter

Conversation

@bmundt6

@bmundt6 bmundt6 commented Mar 4, 2022

Copy link
Copy Markdown

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