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

Cannot search symbols @ and ! in ^R search mode (--use-backslash not affects) #463

Closed
telychko opened this issue Dec 13, 2023 · 2 comments
Closed

Comments

@telychko
Copy link

$ less --version
less 643 (PCRE2 regular expressions)

Cannot search @ and ! symbols in non-regexp mode:

less '+/^R@' file
It's ok as @ is the one of the search mode, but would be good that special symbols could be available via --use-backslash option.

Suggested solution:
less --use-backslash '+/^R@' file

^R there is the one raw symbol.

@gwsw
Copy link
Owner

gwsw commented Dec 14, 2023

In 16a5260 and later you can use the new ctrl-L search modifier to search for a search modifier character:

less '+/^R^L@' file

@telychko
Copy link
Author

Thank you for your great work!

@gwsw gwsw closed this as completed Dec 16, 2023
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