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

acceding capturing group inside hook #45

Closed
alexherbo2 opened this issue Jan 24, 2014 · 2 comments
Closed

acceding capturing group inside hook #45

alexherbo2 opened this issue Jan 24, 2014 · 2 comments

Comments

@alexherbo2
Copy link
Contributor

Take hook global NormalKey * %{ echo %match{0} }.

%match{0} is replaced with the match for which this hook was executed.

@mawww
Copy link
Owner

mawww commented Jul 30, 2014

You can access the parameter passed to the hook (the whole string matched by the hook regex) with $kak_hook_param in %sh{...} or with %val{hook_param}

@mawww mawww closed this as completed Jul 30, 2014
@alexherbo2
Copy link
Contributor Author

I was thinking about kak_hook_param_<n> to expose captured groups.

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