nvim-tree.lua icon indicating copy to clipboard operation
nvim-tree.lua copied to clipboard

Make refactoring files/folders easier

Open sangdth opened this issue 2 years ago • 1 comments

Is your feature request related to a problem? Please describe. After a while, the project usually need to be refactored. It requires a lot of creating/moving/renaming folders. The repetitive makes me less productive.

Describe the solution you'd like The ability to select files/folders, then combine with next action.

Example of using:

  • I select a folder /example (with lot of files/folders inside it)
  • Run refactor, type new name new-folder
  • The structure now is /new-folder/example/...

Another example of using I posted in discussion https://github.com/kyazdani42/nvim-tree.lua/discussions/1232

Describe alternatives you've considered Another "lite" version could be add-and-move the current file/folder that the cursor is staying on top.

  • Move the cursor on top of a file, /example.ts.
  • Run add-and-move, type new-folder/
  • The new structure will be /new-folder/example.ts

Additional context I will update when I can have more information of it.

sangdth avatar May 09 '22 07:05 sangdth

Hi @sangdth, will that be closed by https://github.com/kyazdani42/nvim-tree.lua/pull/1419 ?

kyazdani42 avatar Jul 12 '22 08:07 kyazdani42

@kyazdani42 I didn't find multi rename at once feature like in fern. Could I request it in this issue or should I create a new one?

mario-amazing avatar Aug 28 '22 15:08 mario-amazing

@kyazdani42 I didn't find multi rename at once feature like in fern. Could I request it in this issue or should I create a new one?

Multi rename is a possibility. There are many ways it could be achieved.

Please open a feature request specifying:

  • capabilities of the feature
  • stories for each capability, specifying mappings and prompts
  • examples for a variety of cases

alex-courtis avatar Aug 29 '22 00:08 alex-courtis