Yank relative/absolute path to a document #10679
Unanswered
pawelgrzybek
asked this question in
General
Replies: 2 comments
-
I think the plan is to have #9552 address this use case |
Beta Was this translation helpful? Give feedback.
0 replies
-
Since DAP support is still deeply experimental and in its initial state, debugging is still convenient to carry out in external tools such as lldb or dlv, and for convenience, of course, there is a strong lack of the ability to configure hotkeys to copy the current path and line number to quickly set up break points in debug tools. Actually i thouhgt this will works, but no luck
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi.
Currently there is no easy way to copy a path to a current document. The way how I do it now is
:sh echo <ctrl-r %> | pbcopy
which gives me an absolute path to a current document in my clipboard. I think it is a useful to have it as an individual command. Use case ideas:touch
a new file at the same location.git blame
a fileImplementation ideas:
:yank-path-absolute
/:ypa
:yank-path-relative
/:ypr
I am not a very proficient Rust dev, but if you like the idea I am more than happy to give it a go and implement it. Let me know your thoughts.
Beta Was this translation helpful? Give feedback.
All reactions