Sublime Forum

Open new tab/file on the top left

#1

Is there any way to set that new tabs/open files are open on the top left side. I tried Tabright package but it does not seem to be working.

0 Likes

#2

I was able to set this up via two packages, MoveTab and Multicommand:

// for new tab
{
“keys”: [
“ctrl+n”
],
“command”: “multicommand”,
“args”: {
“commands”: [
{
“command”: “new_file”
},
{
“command”: “move_tab”,
“args”: { “position”: “0” }
},
]
}
},

// for open file
{
“keys”: [
“ctrl+o”
],
“command”: “multicommand”,
“args”: {
“commands”: [

    {"command": "prompt_open_file"},

    {"command": "move_tab", "args": { "position": "0" }},

  ]
}

},

// for sidebar
{
“keys”: [
“ctrl+enter”
],
“command”: “multicommand”,
“args”: {
“commands”: [

  {"command" : "insert", "args" : {"characters": "\n"}},

  {"command": "move_tab","args": { "position": "0" }},
    
  ]
},

},

tab and open file are working as expected, but sidebar is not. It just opens the file and skips second command.

0 Likes