Skip to content

Commit

Permalink
Update README and add change log message
Browse files Browse the repository at this point in the history
  • Loading branch information
pjdietz committed May 6, 2016
1 parent ff4674d commit e8e7ad9
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 9 deletions.
23 changes: 14 additions & 9 deletions README.md
Expand Up @@ -2,9 +2,14 @@


A suite of commands for copying or inserting the current file's path in Sublime Text 2 or 3. A suite of commands for copying or inserting the current file's path in Sublime Text 2 or 3.


## Commands ## Context Menus

All commands are available from the regular context menu. The copy commands are made available from the tab context menu.

## Command Palette

You may also run commands directly from the Command Palette. Open the Command Palette (`Ctrl/Super` + `Shift` + `P`) and enter one of the following:


To use the commands, open the Command Palette (**Ctrl/Super** + **Shift** + **P**) and enter one of the following:
- Insert File Path - Insert File Path
- Insert File Directory - Insert File Directory
- Insert File Name - Insert File Name
Expand All @@ -14,19 +19,19 @@ To use the commands, open the Command Palette (**Ctrl/Super** + **Shift** + **P*
- Copy File Directory - Copy File Directory
- Copy File Name - Copy File Name


## Context Menus
The copy commands are made available from the tab context menu, while the insert commands are available from the regular context menu.

## Key Bindings ## Key Bindings
Override the default keyboard shortcuts by adding key mappings to **Key Bindings - User**.
The default key bindings can opened from **Preferences** > **Package Settings** > **Path Tools** > **Key Bindings - Default**. Path Tools no longer supplies any default key bindings. Previous versions provided key bindings that conflicted with built-in Sublime Text commands.

If you wish to add key bindings, you may add them as user overrides by opening `Preferences` -> `Key Bindings - User`.


## Installation ## Installation


### Sublime Package Control ### Sublime Package Control

You can install Path Tools using the excellent [Package Control][] package manager for Sublime Text: You can install Path Tools using the excellent [Package Control][] package manager for Sublime Text:


1. Open "Package Control: Install Package" from the Command Palette (**Ctrl/Super** + **Shift** + **P**). 1. Open "Package Control: Install Package" from the Command Palette (`Ctrl/Super` + `Shift` + `P`).
2. Select the "Path Tools" option to install Path Tools. 2. Select the "Path Tools" option to install Path Tools.


[Package Control]: http://wbond.net/sublime_packages/package_control [Package Control]: http://wbond.net/sublime_packages/package_control
Expand All @@ -36,5 +41,5 @@ You can install Path Tools using the excellent [Package Control][] package manag
To install manually using Git, clone to your "Packages" directory. To install manually using Git, clone to your "Packages" directory.


```bash ```bash
git clone git@github.com:pjdietz/path-tools.git git clone https://github.com/pjdietz/sublime-path-tools.git "Path Tools"
``` ```
3 changes: 3 additions & 0 deletions messages.json
@@ -0,0 +1,3 @@
{
"1.3.0": "messages/1.3.0.txt"
}
43 changes: 43 additions & 0 deletions messages/1.3.0.txt
@@ -0,0 +1,43 @@
Path Tools 1.3.0 Change Log

Default key bindings have been removed as they conflicted with built-in Sublime
Text key bindings. If you wish to add key binds, please add them as user
overrides.

For reference, the previous default key binding are as follows:

Linux:
[
{ "keys": ["ctrl+shift+c"], "command": "copy_path" },
{ "keys": ["ctrl+alt+c"], "command": "copy_file_name" },
{ "keys": ["ctrl+alt+shift+c"], "command": "copy_file_directory" },
{ "keys": ["ctrl+shift+v"], "command": "insert_file_path" },
{ "keys": ["ctrl+alt+v"], "command": "insert_file_name" },
{ "keys": ["ctrl+alt+shift+v"], "command": "insert_file_directory" },
{ "keys": [""], "command": "insert_relative_path" },
{ "keys": [""], "command": "insert_relative_directory" }
]

OSX:
[
{ "keys": ["super+shift+c"], "command": "copy_path" },
{ "keys": ["super+alt+c"], "command": "copy_file_name" },
{ "keys": ["super+alt+shift+c"], "command": "copy_file_directory" },
{ "keys": ["super+shift+v"], "command": "insert_file_path" },
{ "keys": ["super+alt+v"], "command": "insert_file_name" },
{ "keys": ["super+alt+shift+v"], "command": "insert_file_directory" },
{ "keys": [""], "command": "insert_relative_path" },
{ "keys": [""], "command": "insert_relative_directory" }
]

Windows:
[
{ "keys": ["ctrl+shift+c"], "command": "copy_path" },
{ "keys": ["ctrl+alt+c"], "command": "copy_file_name" },
{ "keys": ["ctrl+alt+shift+c"], "command": "copy_file_directory" },
{ "keys": ["ctrl+shift+v"], "command": "insert_file_path" },
{ "keys": ["ctrl+alt+v"], "command": "insert_file_name" },
{ "keys": ["ctrl+alt+shift+v"], "command": "insert_file_directory" },
{ "keys": [""], "command": "insert_relative_path" },
{ "keys": [""], "command": "insert_relative_directory" }
]

0 comments on commit e8e7ad9

Please sign in to comment.