Sublime text in Ubuntu-Unity. Open file in current workspace

I have four workspaces (call them "spaces" or "desktops" if you want) in Ubuntu with Unity on. I have several Sublime Text 2 windows open in each of them. If I open a new file from Nautilus on desktop 1, the file can be opened on any of the other desktops, depending on which of the Sublime windows was opened last. Is there a way to change this behavior to a more natural one, that is, open the file in the very last window of the workspace I'm in?

+4
source share
1 answer

You can edit the launch bar of the Sublime Text application. It can be found in /usr/share/applications/sublime-text.desktop .

To do this, simply run sudo nano /usr/share/applications/sublime-text.desktop and add -n to the line Exec= so that it looks like

Exec=/opt/sublime_text/sublime_text -n %F

Also note: on some systems, sublime will trigger the cursor when used from the context menu. If this case when .desktop is open for editing, scroll down to the line StartupNotify=true and make it StartupNotify=false . This will prevent the cursor from starting ...

Note. This may not be the exact thing you want. But this allows sublime text to open files in a new window in the current active workspace.

0
source

All Articles