You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Copy a path, open a new terminal window, touch a new file at the same location.
Copy a path, open a new terminal window, git blame a file
Implementation ideas:
New command :yank-path-absolute / :ypa
New command :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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: