# SublimeHg

Issue commands to Mercurial from Sublime Text.

## Requirements

• Mercurial 1.9 or above (command server)

## Configuration

By default, the executable name for Mercurial is hg. If you need to use a different one, such as hg.bat, change the variable packages.sublime_hg.hg_exe to it in Preferences | Global Settings - User.

Example:

{
"packages.sublime_hg.hg_exe": "hg.bat"
}


## How to Use

SublimeHg can be used in two ways:

• Through a command-line interface: show_sublime_hg_cli command.

Regardless of the method used to call it, SublimeHg ultimately talks to the Mercurial command server. The command-line interface is the more flexible option, but some operations might be quicker through the menu.

Normally, you will follow these steps to use SublimeHg:

1. Open the Command Palette (Ctrl+Shift+P) and look for SublimeHg.
2. Select option
3. Select Mercurial command (or type in command line)

Alternatively, you can assign show_sublime_hg_cli and show_sublime_hg_menu their own key bindings.

### Tab Completion

While in the command-line, top level commands will be autocompleted when you press Tab.