Skip to content

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

@con-f-use

Description

@con-f-use

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions