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

feat: add register / which stores the parent path of currently opened document #12037

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

NikitaRevenco
Copy link

@NikitaRevenco NikitaRevenco commented Nov 8, 2024

This register is going to be extremely useful for the following operations:

  • Creating a file next to the currently edited file with :o <C-r>/hello.txt
  • Changing directory to the directory of the currently edited file with :cd <C-r>/
  • Changing directory into parent directory or traveling across the file system in an easier manner. One could :pwd then cd .., but with this you can easily see where you are going and manipulate your path

Inspired by this discussion, where it seems that this feature would really be beneficial: #12002

@darshanCommits
Copy link

I think this is better handled by #11164 (command expansion) PR.

@NikitaRevenco
Copy link
Author

I think this is better handled by #11164 (command expansion) PR.

I can totally see that! It will be awesome when that gets merged

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

Successfully merging this pull request may close these issues.

2 participants