Sublime Forum

Grid layout - open new files always in first editor

#1

Hi,
I use a grid layout (4 editors). When I open a new file from the file manager (Ubuntu 18.04 - nemo), then it opens in the editor where the focus was last set. I don’t like this behavior. Is there an option to open new files in the selected editor (e.g. the first in the grid)?

0 Likes

#2

If you have the Chain of Command plugin installed from Package Control, you can write a simple key binding to do your task :-

{
		"keys": ["ctrl+shift+6"],
		"command": "chain",
		"args": {
			"commands": [
				["focus_group", { "group": 0 }],
				["prompt_open_file"] 
			]
		},
	}

The key binding can be anything of your choice. This will give the focus to the first editor in the layout & then open the native file manager for you to choose the file you want to open.

0 Likes