Sublime Forum

What is the command to open the rename file dialog?

#1

If it’s possible, I want to bind it to a hotkey.

0 Likes

#2

The entry for that command in the Default.sublime-commands file is the following, so if you bind this key to a command, it should do what you want:

    {
        "caption": "Rename File",
        "command": "rename_file",
    },

(note that it’s not a dialog, it’s the command palette asking you for the value of the file argument to the command).

1 Like

#3

Works! :slight_smile: thanks a lot.
Is this file in the Default package?

0 Likes

#4

Yep; you can use the View Package File command from the command palette and easily take a peek at it if you want; the entry would be Default/Default.sublime-commands.

0 Likes

#5

Forgot about that one. Thanks for the reminder!

0 Likes