Home Download Buy Blog Forum Support

Right click on filename in X?

Right click on filename in X?

Postby samkerr on Sat Jan 15, 2011 11:41 pm

Is there an API for Sublime X for when you right click a file name in the list of files?

It would be convenient to add certain operations, such as version control operations, when right clicking a file.
samkerr
 
Posts: 51
Joined: Mon Aug 03, 2009 11:20 pm

Re: Right click on filename in X?

Postby jps on Sun Jan 16, 2011 1:21 am

There's no API for this yet, but I'd like to add it in the future
jps
Site Admin
 
Posts: 3071
Joined: Wed Mar 19, 2008 12:33 pm

Re: Right click on filename in X?

Postby willi297 on Tue Jan 18, 2011 2:45 pm

+2 on this one from me. This would be great stuff to be available for plugin development, and maybe even context awareness based on the current 'build' setting too...
Greg Williams
Atomic Embedded, USA
http://atomicembedded.com
willi297
 
Posts: 121
Joined: Wed Nov 18, 2009 8:29 pm
Location: Grand Rapids, MI, USA

Re: Right click on filename in X?

Postby doug on Fri Jan 28, 2011 11:55 pm

Having been a Sublime Text user on Windows, and now a TextMate user on OS X for a few years, it is very interesting to see Sublime Text X on OS X. Thanks!

One TextMate plugin I use a lot is ProjectPlus. It adds status icons to the side bar (like TortiseSVN does to Windows Explorer), and right-click or control-key menu items that work on selected files and directories in the side bar (update, diff with HEAD, diff with BASE, diff with ..., add to repo, remove from repo, into, status, commit, revert, resolve, etc., etc.). Having the hooks to do this in Sublime Text X would be great. Seeing file/directory status with small icons in the side bar is a real time-saver. The plugin approach should support multiple simultaneous installations of version control clients (subversion, git, mercurial, fossil, etc.).
doug
 
Posts: 4
Joined: Thu Apr 10, 2008 1:40 pm

Re: Right click on filename in X?

Postby willi297 on Thu Feb 03, 2011 4:22 pm

I have ported my TortoiseSVN, and one does exist for command-line SVN for 1.x. The problem is that package key bindings are not picked up yet by 2.x, so you have to paste them into your user key bindings.

Jon is planning on whipping something together to allow better menu customization in 2.x, and I assume this will make adding menu options to the project pane a possibility as well. It will happen. Just a matter of when...
Greg Williams
Atomic Embedded, USA
http://atomicembedded.com
willi297
 
Posts: 121
Joined: Wed Nov 18, 2009 8:29 pm
Location: Grand Rapids, MI, USA


Return to Plugin Development

Who is online

Users browsing this forum: No registered users and 8 guests