Sublime Forum

How to set shortcut for rename command?


how to set shortcut for rename command ?



For commands that expect to take input in the command palette, you need to use the show_overlay command and tell it to open the command palette, and then also tell it what command to execute. In this case that’s the rename_file command, which you can determine by turning on logging in the Sublime console by using sublime.log_commands(True) and then picking the command from the command palette.

You want something similar to this; change the key as appropriate:

    { "keys": ["super+t"], "command": "show_overlay",
      "args": {
        "overlay": "command_palette",
        "command": "rename_file"
1 Like