Sublime Forum

Browse Packages... command

#1

Hi,

I’m trying to find out how Sublime Text 2 invokes the file manager when I select Preferences/Browse Packages…

I’m using sublime with the I3 tiling WM on linux on top of a mint installation and when I select Browse Packages I get a caja file manager instance open at the correct folder but I also get a full screen x-caja-desktop opening that covers the whole screen.

I’d like to know the mechanism used the open the folder so I can attempt to configure the OS not to open x-caja-desktop.

TIA

0 Likes

#2

overwrite the command, by listening for it, doing something(your wish) and then returning a “noop”(no operation)

class MyOpenDirCommand(sublime_plugin.EventListener): def on_window_command(self, window, command_name, args): if command_name == 'open_dir': print(window) print(command_name) print(args) if 'file' in args: print(args'file']) if 'folder' in args: print(args'folder']) return ('noop',])

0 Likes