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

Bind single quote to mapping #821

Closed
alok opened this issue May 2, 2018 · 1 comment
Closed

Bind single quote to mapping #821

alok opened this issue May 2, 2018 · 1 comment

Comments

@alok
Copy link

alok commented May 2, 2018

This doesn't seem possible.

I'm trying to do:

bind generic ' find-next
bind generic " find-prev

but get an error. Oddly, if I wrap those quotes in other quotes, like

# spaces between quotes added for clarity
bind generic ' ' ' find-next
bind generic ' " ' find-prev

then it will work if I press the whole 3 key sequence. Maybe the parsing is wonky?

@jonas
Copy link
Owner

jonas commented May 18, 2018

It's true that since keys can be quoted it is no longer possible to bind to quote characters. I've introduced two key mappings which can be used like this:

bind main <SingleQuote> !echo single
bind main <DoubleQuote> !echo double

@jonas jonas closed this as completed in 8a4effa May 19, 2018
rolandwalker pushed a commit to rolandwalker/tig that referenced this issue May 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants