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

Rename file #6825

Closed
JurajLieskovsky opened this issue Apr 20, 2023 · 4 comments
Closed

Rename file #6825

JurajLieskovsky opened this issue Apr 20, 2023 · 4 comments
Labels
C-enhancement Category: Improvements R-duplicate Duplicated issue: please refer to the linked issue

Comments

@JurajLieskovsky
Copy link

JurajLieskovsky commented Apr 20, 2023

One feature I am missing is a "rename current file" command which renames the file that is currently focused.

At the moment if I want to do so I

  1. save the file
  2. close buffer
  3. call :sh mv $file_name $new_name
  4. open file

which seems to me very tedious. But maybe I am missing some other simple approach.

@JurajLieskovsky JurajLieskovsky added the C-enhancement Category: Improvements label Apr 20, 2023
@sicher
Copy link

sicher commented Apr 20, 2023

You can write the file in the current buffer with a new name :w new_name and then call :sh rm old_name.

@kirawi
Copy link
Member

kirawi commented Apr 20, 2023

Duplicate of #4393

@kirawi kirawi marked this as a duplicate of #4393 Apr 20, 2023
@kirawi kirawi closed this as not planned Won't fix, can't repro, duplicate, stale Apr 20, 2023
@kirawi kirawi added the R-duplicate Duplicated issue: please refer to the linked issue label Apr 20, 2023
@NicTanghe
Copy link

if i need to do more then 1 action to move a file or a folder there is something broken in the core design philosophy. also the p4 git thing barely works.

@kirawi
Copy link
Member

kirawi commented Nov 25, 2024

Literally just go to the linked issue. It's :move then use the keybind C-r %

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: Improvements R-duplicate Duplicated issue: please refer to the linked issue
Projects
None yet
Development

No branches or pull requests

4 participants