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

Added ability to fuzzy find on line number based triggers #245

Merged
merged 2 commits into from
Jul 22, 2022

Conversation

Lamoreauxaj
Copy link
Contributor

DRAFT: Rebased on #241.

This feature adds the ability to specify trigger modes like -trigger line:? and -trigger symbol:? which will cause fzf to only shows files or functions respectively. If -trigger ? is passed, it will show both. However if the user selects a file, there is another prompt for them to select the source location to break on.

This feature adds triggers of the format `addr:0xfffff` or `line:file.ml:99:15`.
All triggers can be prefixed with either `symbol:`, `addr:`, or `line:`, but if
none is given, it will default to a symbol if possible and otherwise parse it as
a line number or address.

There is no feature to allow our fuzzy finding to work with the new options, but
it could be possible to implement fuzzy finding on files for example.

Signed-off-by: Aaron Lamoreaux <alamoreaux@janestreet.com>
This feature adds the ability to specify trigger modes like `-trigger line:?`
and `-trigger symbol:?` which will cause fzf to only shows files or functions
respectively. If `-trigger ?` is passed, it will show both. However if the user
selects a file, there is another prompt for them to select the source location
to break on.

Signed-off-by: Aaron Lamoreaux <alamoreaux@janestreet.com>
@Xyene Xyene marked this pull request as ready for review July 22, 2022 20:30
Copy link
Member

@Xyene Xyene left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@Xyene Xyene merged commit cb85cf1 into janestreet:master Jul 22, 2022
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.

None yet

2 participants