ForceGroup
Sublime Text plugin that forces files to open in a specific group (pane), regardless of which group is focused. Useful for multi-pane layouts, e.g. keeping files on the left and an AI agent or terminal on the right.
Details
Installs
- Total 0
- Win 0
- Mac 0
- Linux 0
| Nov 25 | Nov 24 | Nov 23 | Nov 22 | Nov 21 | Nov 20 | Nov 19 | Nov 18 | Nov 17 | Nov 16 | Nov 15 | Nov 14 | Nov 13 | Nov 12 | Nov 11 | Nov 10 | Nov 9 | Nov 8 | Nov 7 | Nov 6 | Nov 5 | Nov 4 | Nov 3 | Nov 2 | Nov 1 | Oct 31 | Oct 30 | Oct 29 | Oct 28 | Oct 27 | Oct 26 | Oct 25 | Oct 24 | Oct 23 | Oct 22 | Oct 21 | Oct 20 | Oct 19 | Oct 18 | Oct 17 | Oct 16 | Oct 15 | Oct 14 | Oct 13 | Oct 12 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Windows | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
ForceGroup
A Sublime Text plugin that forces files to open in a specific group (pane), no matter which group is focused when they are opened.
Useful for multi-pane layouts where you want, for example, the editor group to always receive new files instead of a sidebar or terminal group.
The main reason I created this plugin is to keep, for example, an AI agent in the right pane and the files you edit in the left pane. When the agent is focused and you click a file in the file list, Sublime opens it in the focused (right) pane next to the agent. ForceGroup moves it to the left pane instead.
How it works
When a file is shown, ForceGroup moves it to the configured target group and focuses it there. By default (allow_manual_move) this only happens the first time a file is shown, so you can drag it to another group afterwards. It skips:
- untitled buffers (no file on disk)
.sublime-settingsfiles, so Edit Settings keeps its side-by-side layout- widgets such as the find panel
- windows with only one group
Installation
Package Control
- Open the Command Palette (
Ctrl/Cmd+Shift+P). - Run Package Control: Install Package.
- Select ForceGroup.
Manual
Clone this repository into your Sublime Text Packages directory (Preferences → Browse Packages…), named ForceGroup:
cd ~/Library/Application\ Support/Sublime\ Text/Packages # macOS
git clone git@github.com:Scribilicious/ForceGroup.git ForceGroup
Settings
Open Preferences → Package Settings → ForceGroup → Settings. The defaults are on the left, and your overrides go in the right-hand pane (saved to Packages/User/ForceGroup.sublime-settings):
| Setting | Default | Description |
|---|---|---|
enabled |
true |
Set to false to disable the plugin. |
group |
1 |
Group that files are forced into (1 = first group). If the layout has fewer groups, the last group is used. |
allow_manual_move |
true |
true: a file is only forced into the group the first time it is shown, so you can drag it elsewhere afterwards. false: files are moved back whenever they are activated. |
Commands
Available from the Command Palette (Ctrl/Cmd+Shift+P):
- Force Group: Toggle – turn the plugin on or off. The state is saved to the settings file.
- Preferences: ForceGroup Settings – open the default and user settings side by side.
License
MIT – see LICENSE.