Glue
  • Install Glue
    • Install with Sublime Package Control
    • Install with Git
    • Manual Install
    • Confirm Your PATH
    • Set Your Default Shell
    • Set Your PS1
    • Get Started
  • Commands
    • Table of Commands
    • Command Usage
    • ⊙ cd
    • ⊙ exit
    • ⊙ glue browse
    • ⊙ glue clear
    • ⊙ glue finder
    • ⊙ glue goto
    • ⊙ glue help
    • ⊙ glue localhost
    • ⊙ glue new
    • ⊙ glue open
    • ⊙ glue path
    • ⊙ glue user
    • ⊙ glue wco
  • Navigation
    • Change Directories with CD
    • The Working Directory
  • File Management
    • Open Files by Path
    • Open Files by Wildcard
    • Create a New File
    • File Management with System Utilities
  • Extend Glue
    • Create the Glue-Commands Directory
    • Create a glue.json File
    • Define Your Command Extensions
    • Use Your Extensions
    • System Utility Example
    • Launch URL in Default Browser Example
    • Multiple Application Version Example
    • Shell Script Example
  • Limitations
    • Glue and Your Shell
  • Issues
    • Bugs
  • Contribute
    • Source Contributions
  • Changelog
  • License
    • Glue Plugin License
    • Glue Documentation License
 
Glue
  • Docs »
  • Navigation
  • Edit on GitHub

Navigation¶

Change Directories with CD¶

Glue includes its own version of the cd command. Use the following syntax:

$ cd <directory-path>

To navigate to a parent directory, use the following idiom:

$ cd ..

And to navigate to your user home directory (platform dependent), use this idiom:

$ cd ~

Glue maintains the state of your working directory between command runs while you keep the Glue view open. When you close the Glue view or use the exit command, this information is discarded and you start fresh the next time that you open Glue.

The Working Directory¶

Your initial working directory differs based upon how you launch Glue.

Sidebar Right Click Menu Working Directory¶

When you launch Glue with the right click menu over any of your project files or the root project directory, the root project directory is used as the working directory.

If you launch Glue in this fashion over a subdirectory, then the subdirectory is used as the initial working directory.

Command Palette Working Directory¶

When you launch Glue with the Command Palette with a project file open in the editor, the root project directory is defined as the working directory.

Note that if you do not have a project file open in the editor, even if a project is open and in view on the sidebar, your initial working directory is set to your User directory as defined by the Python os module expanduser method:

os.path.expanduser("~")

This is the result of how Sublime Text handles file paths for new buffers that are opened in the editor. Glue doesn’t have access to the project directory path from the Command Palette unless a project file view is open in the editor.

Next Previous

© Copyright 2014, Christopher Simpkins.

Built with Sphinx using a theme provided by Read the Docs.