Sublime Forum

Keyboard shortcut to Rename/Move file

#1

On Mac OSX, is there a way to set-up a keyboard shortcut to Rename and Move the currently active file without having to right-click on the filename in the sidebar? I would like to be able to create a new file, rename, or move it by pulling up the field box at the bottom of Sublime. It seems the input field only pops-up when you right-click on a file.

0 Likes

#2

+1!! I do this often enough that it’s quite annoying to have to open up the sidebar or the file browser in order to move or rename a file. All it needs is a keyboard shortcut–the current interface (once you’re actually renaming/moving) is quite nice.

0 Likes

#3

I managed to find this plugin for renaming: http://sublime-text-community-packages.googlecode.com/svn/trunk/QuickRename/ which doesn’t appear to be part of the package installer, and doesn’t work with ST2.

edit: I tried porting it to ST2, but I know nothing about Python, so I’m kinda at a loss.

0 Likes

#4

Ok, so after a few hours of messing around and learning Python, I ported it to ST2. It works, but I can’t guarantee your safety! :open_mouth:

Here’s the link: https://github.com/wulftone/sublime-text-2-quick-file-renamer

I may go and try to put together a file moving plugin next…

0 Likes

#5

[quote=“wulftone”]Ok, so after a few hours of messing around and learning Python, I ported it to ST2. It works, but I can’t guarantee your safety! :open_mouth:

Here’s the link: https://github.com/wulftone/sublime-text-2-quick-file-renamer

I may go and try to put together a file moving plugin next…[/quote]

Or you can install SideBarEnhancements, and bind the followings:

{ “keys”: “yourkeybind”], “command”: “side_bar_rename” },

0 Likes

#6

or

{ "keys": "yourkeybind"], "command": "side_bar_move" },

to allow a full path change.

These commands also reload the affected tabs keeping scroll bookmarks, etc

0 Likes