Home Download Buy Blog Forum Support

Keyboard shortcut to Rename/Move file

Keyboard shortcut to Rename/Move file

Postby matthewstrickland22 on Thu Jan 12, 2012 4:11 am

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.
matthewstrickland22
 
Posts: 3
Joined: Wed Jan 11, 2012 9:49 pm

Re: Keyboard shortcut to Rename/Move file

Postby wulftone on Thu Feb 02, 2012 5:55 am

+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.
wulftone
 
Posts: 12
Joined: Thu Feb 02, 2012 5:53 am

Re: Keyboard shortcut to Rename/Move file

Postby wulftone on Thu Feb 02, 2012 7:21 am

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.
wulftone
 
Posts: 12
Joined: Thu Feb 02, 2012 5:53 am

Re: Keyboard shortcut to Rename/Move file

Postby wulftone on Thu Feb 02, 2012 10:27 am

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! :shock:

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...
wulftone
 
Posts: 12
Joined: Thu Feb 02, 2012 5:53 am

Re: Keyboard shortcut to Rename/Move file

Postby S0und on Tue Mar 27, 2012 9:27 pm

wulftone wrote: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! :shock:

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


Or you can install SideBarEnhancements, and bind the followings:

{ "keys": ["yourkeybind"], "command": "side_bar_rename" },
S0und
 
Posts: 70
Joined: Wed Oct 28, 2009 4:12 pm

Re: Keyboard shortcut to Rename/Move file

Postby tito on Wed Mar 28, 2012 4:59 am

or
Code: Select all
{ "keys": ["yourkeybind"], "command": "side_bar_move" },


to allow a full path change.

These commands also reload the affected tabs keeping scroll bookmarks, etc
Give APIs, let the community build the rest!
https://github.com/titoBouzout
tito
 
Posts: 855
Joined: Thu Sep 29, 2011 2:27 pm
Location: Montevideo, Uruguay


Return to Technical Support

Who is online

Users browsing this forum: Yahoo [Bot] and 24 guests