Skip to content

Support sublime text build system variables in "save_location" #85

@mikelei8291

Description

@mikelei8291

Description

Sublime text defines some variables which contain information about file and directory paths of the opened file: https://www.sublimetext.com/docs/3/build_systems.html#variables

For example, $file_path is the path to the file in the active view, and $folder is the first opened folder in the side bar. They can be expanded using the sublime.expand_variables() function, with information retrieved from the self.window.extract_variables() function of the API.

This can be useful if I would like to specify a directory to store the exported HTML files relative to the currently opened file, directory, or project.

Support Info

  • ST ver.: 3211
  • Platform: windows
  • Arch: x64
  • Plugin ver.: 2.17.0
  • Install via PC: True
  • mdpopups ver.: 4.0.4
  • markdown ver.: 3.2.2
  • pygments ver.: 2.1a0
  • jinja2 ver.: 2.10.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    P: lowLow priority bug or request.T: featureFeature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions