pwmt / zathura

Document viewer
https://pwmt.org/projects/zathura
zlib License
2.13k stars 146 forks source link

[Feature Request] Search in document index by pressing / #53

Open sebastinas opened 6 years ago

sebastinas commented 6 years ago

On GitLab by @kswt on Apr 15, 2018, 01:26


sebastinas commented 5 years ago

On GitLab by @fteixeira on Mar 20, 2019, 12:37


I believe this feature was already implemented, but it is only available from the "/" on the main keyboard. In vim, both / and the / on the keypad trigger the search function. I believe this behaviour could/should be replicated.

TL;DR: Trigger search by using the / on the keypad.

sebastinas commented 4 years ago

On GitLab by @PRESFIL on Nov 8, 2020, 18:06


@fteixeira, I don't know, why

Trigger search by using the / on the keypad.

does not works for me, but searching in Index mode is very useful, I think.

I :map [Index] focus_inputbar and hit /<search_term> to search inside Index mode, but this performed a search in main view, where the document is displayed.

I also noticed, that Presentation mode also does not have search-ability, and command prompt, generally, like in Index mode. It would be nice, if :, /, ? hotkey will be implemented in all modes, because it is written in the documentation and it is confusing.

sebastinas commented 1 year ago

On GitLab by @consus on Jan 15, 2023, 24:57


Bump? Not having this is very frustrating.

chrysn commented 1 month ago

If this is added, it may make sense to interlink it with full-text search. Especially if the number of occurrences were shown (as is in vim as [4/12] showing the 4th of 12 matches), it could in parallel show the matches in the other category, so that a user who looks in one but it is to be found in the other gets a quick visual indication that there are results that were just not found with this particular search method.