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

[hints] paste path without line numbers into terminal #3931

Closed
con-f-use opened this issue Aug 14, 2021 · 1 comment
Closed

[hints] paste path without line numbers into terminal #3931

con-f-use opened this issue Aug 14, 2021 · 1 comment

Comments

@con-f-use
Copy link
Contributor

con-f-use commented Aug 14, 2021

I'm having a bit of trouble getting kitty to paste a path without the lineumber part. Let's say I did this in a kitty terminal running bash:

$ echo ./.local/share/example.txt:1:2

then the regular path hint

map ctrl+f kitten hints --type path --program -

will paste ./.local/share/example.txt:1:2to the current terminal. I want it to paste just ./.local/share/example.txtwithout the 1:2 at the end.

I tried this mapping:

map ctrl+f kitten hints --type linenum --linenum-action self --program - {path}

Which does almost what I want, but not quite: i.e. the file path appears on the terminal, but also executes the line right away.

image

So, how do I past just the path without everything after the first colon? Maybe a new --linenum-action none or paste is needed?

@con-f-use con-f-use changed the title [hints] past path without line num into terminal [hints] paste path without line numbers into terminal Aug 14, 2021
@con-f-use
Copy link
Contributor Author

Thank you for your work.

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

1 participant