Home Download Buy Blog Forum Support

Rename Files without Mouse (OS X)

Rename Files without Mouse (OS X)

Postby clarkbreyman on Tue Mar 25, 2014 11:54 pm

How does one rename files in sublime text without using a mouse (OS X)? Files the sidebar have a popup menu that seems to require the mouse. Once I get the rename bottom bar, I need to click in it to set cursor focus.
Posts: 1
Joined: Tue Mar 25, 2014 11:49 pm

Re: Rename Files without Mouse (OS X)

Postby henkbb on Wed Mar 26, 2014 12:50 am

You could create a little plugin and put a shortkey for it in your keymap, here's how to do it:

Posts: 30
Joined: Sat Mar 15, 2014 7:39 pm

Re: Rename Files without Mouse (OS X)

Postby skuroda on Wed Mar 26, 2014 8:19 am

If you don't want to write your own plugin, https://github.com/skuroda/Sublime-AdvancedNewFile already supports it. There isn't a key binding (by default), but there is a command palette entry. You can add a key binding yourself if you want also. The plugin ties into the file creation of the plugin, so it will create any directories not on the path specified. In addition, there is tab completion for the path, which can be convenient.

If you do use the plugin, I'd also recommend adding a user setting for the plugin "rename_default": ":". With this, the path you specify will start from the location of the current file.

Never quite got around to finishing all of the documentation, but what most of it should be in the readme or the wiki (https://github.com/skuroda/Sublime-AdvancedNewFile/wiki).
Posts: 692
Joined: Fri Oct 05, 2012 8:11 am

Re: Rename Files without Mouse (OS X)

Postby valerij_ on Thu Mar 27, 2014 3:46 pm

`dired` or `FileBrowser` plugins might be something for you
Posts: 62
Joined: Fri Feb 14, 2014 5:59 pm

Return to Technical Support

Who is online

Users browsing this forum: Google [Bot] and 13 guests