Sublime Forum

Split view options from command palette?

#1

It would be great if I could type ‘View split row’ in the command palette and have View > Layout > Row actioned.

Would it be possible to get these commands into the Command palette for easy access? I use them only infrequently and remembering where they are (or the shortcut) is a pain.

0 Likes

#2

You could achieve this just by creating a Default.sublime-commands file in your Packages/User folder with the following contents:

[
  { "caption": "View split row",
    "command": "set_layout",
    "args": { "cells": [[0, 0, 1, 1], [0, 1, 1, 2]], "cols": [0.0, 1.0], "rows": [0.0, 0.5, 1.0] }
  },
]
2 Likes

#3

Wow. That’s great. Thanks I will give that a go.

0 Likes

#4

see also


https://packagecontrol.io/packages/Missing%20Palette%20Commands

0 Likes

#5

Ah, even better. Thanks, installed that

0 Likes