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

Add basic rename command to tracked explorer tree (move) #792

Merged
merged 4 commits into from
Sep 8, 2021

Conversation

mattseddon
Copy link
Member

@mattseddon mattseddon commented Sep 8, 2021

1/2 master <- this <- #795

This PR adds the option to rename a file in the explorer tracked tree based on dvc move.

Things to note:

  1. We cannot use the native renameFile action as it works very unexpectedly when I wired it up to the tree.
  2. I have used the showInputBox as the best alternative. I am open to suggestions for how to improve this.

Demo:

Screen.Recording.2021-09-08.at.2.07.30.pm.mov

In the next PR I am going to move around how we use showGenericError as I think that we can tie this into our new registerInstrumentedCommand functionality.

Addresses part of the 3rd point on #569.

@mattseddon mattseddon added the product PR that affects product label Sep 8, 2021
@mattseddon mattseddon self-assigned this Sep 8, 2021
"command": "dvc.pushTarget",
"group": "DVC",
"command": "dvc.pullTarget",
"group": "1_DVC@1",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[F] The context menu is now ordered as follows:

image

@mattseddon mattseddon marked this pull request as ready for review September 8, 2021 04:13
@mattseddon mattseddon marked this pull request as draft September 8, 2021 04:14
@mattseddon mattseddon marked this pull request as ready for review September 8, 2021 09:16
@codeclimate
Copy link

codeclimate bot commented Sep 8, 2021

Code Climate has analyzed commit 3022153 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 92.3% (85% is the threshold).

This pull request will bring the total coverage in the repository to 95.9% (0.0% change).

View more on Code Climate.

@mattseddon mattseddon enabled auto-merge (squash) September 8, 2021 22:41
@mattseddon mattseddon merged commit 60dbaa3 into master Sep 8, 2021
@mattseddon mattseddon deleted the add-rename-command branch September 8, 2021 22:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
product PR that affects product
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants