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

Selection on Custom Kitten #2796

Closed
0xlee opened this issue Jun 25, 2020 · 2 comments
Closed

Selection on Custom Kitten #2796

0xlee opened this issue Jun 25, 2020 · 2 comments

Comments

@0xlee
Copy link

0xlee commented Jun 25, 2020

Hi,

is there a way to get the current selection in a custom kitten? I searched the existing kittens, but it didn't help me further. Thanks for advices.

Best
Dongha

@trygveaa
Copy link
Sponsor Contributor

You can also get it with w.text_for_selection() where w is the window which you can see how to get in the first example on https://sw.kovidgoyal.net/kitty/kittens/custom.html.

@0xlee
Copy link
Author

0xlee commented Jun 26, 2020

@trygveaa Thanks a lot, that was exactly what I was looking for. 😆

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