Home Download Buy Blog Forum Support

Trying to find certain command definitions

Trying to find certain command definitions

Postby Tbabs on Thu Jul 04, 2013 6:56 am

The Project -> "Open Project..." option executes a command called "prompt_open_project_or_workspace." Where is this command defined? I'm looking all over and cannot find it.

Alternatively, I'm trying to see if it's possible to create a plugin that will allow a default location for the "open project" prompt. I figure taking a look at the "prompt_open_project_or_workspace" command would be illuminating.

Any know anything about this?
Posts: 2
Joined: Mon Aug 06, 2012 6:27 pm

Re: Trying to find certain command definitions

Postby sapphirehamster on Fri Jul 05, 2013 2:45 am

It's probably built-in (possibly in C++).

The Open Project... command defaults to the last directory you were in. On my system (OS X) this is saved in ~/Library/Preferences/com.sublimetext.3.plist in the key NSNavLastRootDirectory. I would imagine it's not too hard to find this in Windows or Linux. You could maybe write a plugin that would modify this before executing prompt_open_project_or_workspace, although I'm not sure if that'll work while Sublime is running.
Posts: 99
Joined: Sun Jul 01, 2012 11:19 pm

Return to Plugin Development

Who is online

Users browsing this forum: No registered users and 6 guests