Hi,
Thanks for the positive responses, nice to hear that it is useful to someone else. In combination with the “run multiple commands” plugin Run Multiple Commands.. Command , I created some keyboard shortcuts for tabline switching that you can find attached.
Best regards,
wwwweb
//layout: enable/disable multi line tabbar switching
{ "keys": "ctrl+u","ctrl+r"], "command": "toggle_multi_col_layout" },
//disable multiline tabbar and show single tabline only
{
"keys": "ctrl+alt+b"],
"command": "run_multiple_commands",
"args": {
"commands":
{"command": "disable_multi_col_layout", "context": "window"},
{"command": "set_layout", "context": "window","args":{"cols": [0.0, 1.0],"rows": [0.0, 1.0],"cells": [0, 0, 1, 1]]}}
]}},
//split screen
{
"keys": "ctrl+alt+n"],
"command": "run_multiple_commands",
"args": {
"commands":
{"command": "disable_multi_col_layout", "context": "window"},
{
"command": "set_layout",
"context":"window",
"args":
{
"cols": [0.0, 0.5, 1.0],
"rows": [0.0, 1.0],
"cells": [0, 0, 1, 1], [1, 0, 2, 1]]
}}
]}},
//move current file to other row
{ "keys": "ctrl+alt+,"], "command": "move_to_group", "args": { "group": 0 } },
{ "keys": "ctrl+alt+."], "command": "move_to_group", "args": { "group": 1 } },
{ "keys": "ctrl+alt+-"], "command": "move_to_group", "args": { "group": 2 } },
//first group to foreground
{
"keys": "ctrl+,"],
"command": "run_multiple_commands",
"args": {
"commands":
{"command": "enable_multi_col_layout", "context": "window"},
{
"command": "set_layout",
"context":"window",
"args":
{
"cols": [0.0 ,1],
"rows": [0.0, 0.025, 0.05, 1.0],
"cells": [0, 2, 1, 3],[0, 0, 1, 1],[0, 1, 1, 2]]
}}
]}},
//second group to foreground
{
"keys": "ctrl+."],
"command": "run_multiple_commands",
"args": {
"commands":
{"command": "enable_multi_col_layout", "context": "window"},
{
"command": "set_layout",
"context":"window",
"args":
{
"cols": [0.0 ,1],
"rows": [0.0, 0.025, 0.05, 1.0],
"cells": [0, 0, 1, 1],[0, 2, 1, 3],[0, 1, 1, 2]]
}}
]}},
//third group to foreground
{
"keys": "ctrl+-"],
"command": "run_multiple_commands",
"args": {
"commands":
{"command": "enable_multi_col_layout", "context": "window"},
{
"command": "set_layout",
"context":"window",
"args":
{
"cols": [0.0 ,1],
"rows": [0.0, 0.025, 0.05, 1.0],
"cells": [0, 0, 1, 1],[0, 1, 1, 2], [0, 2, 1, 3]]
}}
]}},
//disable multi tabline view and show first row only
{
"keys": "ctrl+b"],
"command": "run_multiple_commands",
"args": {
"commands":
{"command": "disable_multi_col_layout", "context": "window"},
{
"command": "set_layout",
"context":"window",
"args":
{
"cols": [0.0 ,1],
"rows": [0.0, 0.025, 0.05, 1.0],
"cells": [0, 0, 1, 3],[0, 0, 0, 0],[0, 0, 0, 0]]
}}
]}},
//disable multi tabline view and show second row only
{
"keys": "ctrl+n"],
"command": "run_multiple_commands",
"args": {
"commands":
{"command": "disable_multi_col_layout", "context": "window"},
{
"command": "set_layout",
"context":"window",
"args":
{
"cols": [0.0 ,1],
"rows": [0.0, 0.025, 0.05, 1.0],
"cells": [0, 0, 0, 0],[0, 0, 1, 3],[0, 0, 0, 0]]
}}
]}},
//disable multi tabline view and show third row only
{
"keys": "ctrl+m"],
"command": "run_multiple_commands",
"args": {
"commands":
{"command": "disable_multi_col_layout", "context": "window"},
{
"command": "set_layout",
"context":"window",
"args":
{
"cols": [0.0 ,1],
"rows": [0.0, 0.025, 0.05, 1.0],
"cells": [0, 0, 0, 0],[0, 0, 0, 0],[0, 0, 1, 3]]
}}
]}}
