This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Added a keybinding to rename the current buffer (updated)#1248
Open
elliotaplant wants to merge 4 commits intoatom:masterfrom
Open
Added a keybinding to rename the current buffer (updated)#1248elliotaplant wants to merge 4 commits intoatom:masterfrom
elliotaplant wants to merge 4 commits intoatom:masterfrom
Conversation
Contributor
|
I don't think this achieves the stated goal of always renaming the current buffer since there is an option to prevent tree-view from always tracking the currently open buffer. This isn't going to be a simple change of adding a keybinding. |
Author
|
Good to know. Would it be worth warning the user if they tried to change a filename but tree-view wasn't tracking that file? |
Contributor
|
Not if the idea for the keybinding is to always affect the "current buffer". |
Author
|
Good point. This would require either always tracking the current buffer or removing the hotkey if that isn't possible. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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