Skip to content

Make refactoring files/folders easier #1247

@sangdth

Description

@sangdth

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 #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.

Activity

kyazdani42

kyazdani42 commented on Jul 12, 2022

@kyazdani42
Member

Hi @sangdth, will that be closed by #1419 ?

mario-amazing

mario-amazing commented on Aug 28, 2022

@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?

alex-courtis

alex-courtis commented on Aug 29, 2022

@alex-courtis
Member

@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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @sangdth@alex-courtis@mario-amazing@kyazdani42

        Issue actions

          Make refactoring files/folders easier · Issue #1247 · nvim-tree/nvim-tree.lua