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 in files #183

Open
clason opened this issue Oct 19, 2020 · 2 comments
Open

Search in files #183

clason opened this issue Oct 19, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@clason
Copy link

clason commented Oct 19, 2020

One thing I really miss from other viewers is the ability to search in files, ideally with the same shortcuts as less:

                         SEARCHING

  /pattern          *  Search forward for (N-th) matching line.
  ?pattern          *  Search backward for (N-th) matching line.
  n                 *  Repeat previous search (for N-th occurrence).
  N                 *  Repeat previous search in reverse direction.
  ESC-n             *  Repeat previous search, spanning files.
  ESC-N             *  Repeat previous search, reverse dir. & spanning files.
  ESC-u                Undo (toggle) search highlighting.
  &pattern          *  Display only matching lines
        ---------------------------------------------------
        A search pattern may be preceded by one or more of:
        ^N or !  Search for NON-matching lines.
        ^E or *  Search multiple files (pass thru END OF FILE).
        ^F or @  Start search at FIRST file (for /) or last file (for ?).
        ^K       Highlight matches, but don't move (KEEP position).
        ^R       Don't use REGULAR EXPRESSIONS.
 ---------------------------------------------------------------------------

(Using ? for backward search would require moving the help shortcut to h as in less.)

@znd4
Copy link

znd4 commented Jul 7, 2024

would C-f be acceptable? As a vim user, I'd also like / and ?, but there's an argument for using "normy" shortcuts

@hacker-DOM
Copy link

Even youtube, gmail, google.com.. use / for search[0]; it doesn't get any more normy than that:)

[0] focusing search box

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

No branches or pull requests

4 participants