This repository has been archived by the owner on Dec 15, 2022. It is now read-only.
Added a keybinding to rename the current buffer (updated) #1248
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Requirements
Description of the Change
As per Atom issue #3212, there is a desire for a hotkey to rename/move the current file if the file has been saved outside the scope of the root dir and it is not visible in the tree view. A PR has already been submitted for this issue, but it had one outstanding change required and hasn't been updated in over a year.
This change adds the hotkey for the move command within the atom editor for darwin, windows, and linux systems.
Alternate Designs
No alternate designs were considered.
Benefits
The benefit of this change is that users will be able to rename/move files they are editing with a hotkey even if they can't find those files in their tree-view.
Possible Drawbacks
One possible drawback is if someone expected this hotkey to do nothing, they would be unpleasantly surprised to find that they are renaming their files with the keybinding
alt-shift-m
. This won't be a problem for people who have overridden this keybinding.Applicable Issues
gitub.com/atom issue:
atom/atom#3212
currently open PR:
#549