ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Edit Command Palette

by twolfson ST2/ST3

Add/edit commands for your Command Palette

Details

Installs

  • Total 9K
  • Win 6K
  • OS X 2K
  • Linux 974
Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6 Sep 5 Sep 4 Sep 3 Sep 2 Sep 1
Windows 4 3 3 4 2 1 5 2 4 2 5 1 5 8 5 3 4 3 4 6 4 0 4 1 9 3 8 4 6 3 3 2 3 3 4 1 5 2 5 3 4 7 6 5 3 3
OS X 2 2 0 1 1 1 1 2 3 0 1 1 1 2 4 2 1 2 1 0 0 0 1 1 2 0 0 0 0 1 0 0 1 1 0 0 0 1 1 0 0 3 1 1 0 0
Linux 1 0 2 2 1 0 2 0 0 1 0 0 1 0 1 0 0 0 0 3 0 0 0 0 0 0 2 1 1 0 0 1 1 0 1 0 1 0 0 2 0 0 1 0 1 0

Readme

Source
raw.​githubusercontent.​com

sublime-edit-command-palette

Add/edit commands for your Command Palette

This plugin was created out of frustration that multiple plugin creators write key bindings but nothing for the command palette.

Animation

Getting Started

Installation

This package is available under Edit Command Palette inside of Package Control, a Sublime Text plugin that allows for easy management of other plugins.

If you prefer the manual route, you can install the script via the following command in the Sublime Text terminal (ctrl+`) which utilizes git clone.

import os; path=sublime.packages_path(); (os.makedirs(path) if not os.path.exists(path) else None); window.run_command('exec', {'cmd': ['git', 'clone', 'https://github.com/twolfson/sublime-edit-command-palette', 'Edit Command Palette'], 'working_dir': path})

Packages can be uninstalled via “Package Control: Remove Package” via the command pallete, ctrl+shift+p on Windows/Linux, command+shift+p on Mac.

Command Palette

sublime-edit-command-palette provides 2 commands to access Sublime Text's commands:

  • Preferences: Commands - Default - Opens default commands provided by Sublime Text
  • Preferences: Commands - User - Opens custom user commands and provides prompt for first-timers

Menu

sublime-edit-command-palette defines 2 menu items under Preferences:

  • Commands - Default - Opens default commands provided by Sublime Text
  • Commands - User - Opens custom user commands and provides prompt for first-timers

Documentation

edit_command_palette_open_user(self)

edit_command_palette_open_user creates a default Packages/User/Default.sublime-commands containing a prompt for the user, opens it, and sets the language to JSON.

We add in the default and language to make it more approachable. Otherwise, it would be an empty file and in plain text by default.

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality.

Donating

Support this project and others by twolfson via gratipay.

Support via Gratipay

Unlicense

As of Oct 31 2014, Todd Wolfson has released this repository and its contents to the public domain.

It has been released under the UNLICENSE.