Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Yank relative/absolute path to a document #10675

Closed
pawelgrzybek opened this issue May 4, 2024 · 1 comment
Closed

Yank relative/absolute path to a document #10675

pawelgrzybek opened this issue May 4, 2024 · 1 comment
Labels
C-enhancement Category: Improvements

Comments

@pawelgrzybek
Copy link
Contributor

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:

  1. Copy a path, open a new terminal window, touch a new file at the same location.
  2. 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.

@pawelgrzybek pawelgrzybek added the C-enhancement Category: Improvements label May 4, 2024
@kirawi
Copy link
Member

kirawi commented May 4, 2024

I think the plan is to have #9552 address this use case

@helix-editor helix-editor locked and limited conversation to collaborators May 4, 2024
@pascalkuthe pascalkuthe converted this issue into discussion #10679 May 4, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
C-enhancement Category: Improvements
Projects
None yet
Development

No branches or pull requests

2 participants