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

search for text within a note #80

Open
odinnaodin opened this issue Jun 28, 2021 · 3 comments
Open

search for text within a note #80

odinnaodin opened this issue Jun 28, 2021 · 3 comments

Comments

@odinnaodin
Copy link

now the search works only by the title, but it is convenient to search for text also inside the note, to search for text throughout the text of the note.

@Sambigeara
Copy link
Owner

Hello!

I've thought about this once or twice in the past. I'm tentative to implement a thorough solution because I envision some changes being made in the future which would alter the underlying mechanisms. There's also considerations around how lines matched via notes will present themselves to the user 🤔

That being said; for the time being, I'd be happy enough to add basic support and allow users to toggle it explicitly via something like fzn --match-notes or $FZN_MATCH_NOTES=true etc. In terms of how this will present in the UI, it might be a bit misleading given the matched text might not be visible, but at least the user has explicit control over it.

I'll add this to my to-do list to implement as per the above 👍 . I'll be a little tied up in the coming days but should have some time over the weekend.

Cheers

@odinnaodin
Copy link
Author

Hello!

I've thought about this once or twice in the past. I'm tentative to implement a thorough solution because I envision some changes being made in the future which would alter the underlying mechanisms. There's also considerations around how lines matched via notes will present themselves to the user

That being said; for the time being, I'd be happy enough to add basic support and allow users to toggle it explicitly via something like fzn --match-notes or $FZN_MATCH_NOTES=true etc. In terms of how this will present in the UI, it might be a bit misleading given the matched text might not be visible, but at least the user has explicit control over it.

I'll add this to my to-do list to implement as per the above . I'll be a little tied up in the coming days but should have some time over the weekend.

Cheers

I would also like to have a preview panel as it is done for example in https://github.com/alok/notational-fzf-vim

@Sambigeara
Copy link
Owner

I would also like to have a preview panel as it is done for example in https://github.com/alok/notational-fzf-vim

I agree that this will be a nice feature to have, but drastically increases the size of this task (and probably will require a lot of thought to do it properly/extensibly). I'll tackle the basic note matching support I mentioned above within the scope of this issue.

Cheers

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

No branches or pull requests

2 participants