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

Path Tools

by pjdietz ALL

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

Details

Installs

  • Total 16K
  • Win 7K
  • Mac 6K
  • Linux 3K
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 Aug 31 Aug 30 Aug 29 Aug 28 Aug 27 Aug 26 Aug 25 Aug 24 Aug 23 Aug 22 Aug 21 Aug 20 Aug 19 Aug 18 Aug 17 Aug 16 Aug 15 Aug 14 Aug 13 Aug 12 Aug 11 Aug 10 Aug 9 Aug 8 Aug 7 Aug 6
Windows 0 1 0 4 4 4 1 0 2 1 1 1 2 4 0 1 1 1 1 1 3 0 2 0 1 4 2 2 1 1 0 2 2 0 2 2 1 2 3 4 1 4 3 2 0 2
Mac 0 0 1 1 1 0 3 2 0 2 0 2 2 1 1 0 0 0 1 2 1 1 1 0 1 1 0 0 2 0 1 0 1 0 2 0 1 0 3 1 1 0 0 0 0 1
Linux 0 1 0 0 3 2 0 0 2 2 1 1 2 2 1 1 1 0 0 1 0 1 0 0 1 1 1 0 0 1 0 0 0 2 1 0 0 0 0 1 0 2 2 0 1 0

Readme

Source
raw.​githubusercontent.​com

Path Tools

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

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:

  • Insert File Path
  • Insert File Directory
  • Insert File Name
  • Insert Path Relative to Project
  • Insert Directory Relative to Project
  • Copy File Path
  • Copy File Directory
  • Copy File Name

Key Bindings

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

Sublime Package Control

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).
  2. Select the “Path Tools” option to install Path Tools.

Git Installation

To install manually using Git, clone to your “Packages” directory.

git clone https://github.com/pjdietz/sublime-path-tools.git "Path Tools"