Skip to content

Instantly share code, notes, and snippets.

@jhonoryza
Last active February 4, 2024 03:30
Show Gist options
  • Save jhonoryza/fe1de37f573c380231754721e7c67aef to your computer and use it in GitHub Desktop.
Save jhonoryza/fe1de37f573c380231754721e7c67aef to your computer and use it in GitHub Desktop.
[
{ "keys": ["super+shift+l"], "command": "goto_symbol_in_project" },
{ "keys": ["super+shift+9"], "command": "intelephense.index.workspace"},
{ "keys": ["super+b"], "command": "toggle_side_bar" },
{ "keys": ["super+t"], "command": "toggle_terminus_panel" },
{ "keys": ["super+shift+o"], "command": "close_all" },
{
"command": "lsp_symbol_definition",
"args": {
"side_by_side": false
},
"keys": [
"super+enter"
],
"context": [
{
"key": "lsp.session_with_capability",
"operator": "equal",
"operand": "definitionProvider"
},
{
"key": "auto_complete_visible",
"operator": "equal",
"operand": false
}
]
},
{
"command": "lsp_format_document",
"keys": [
"super+shift+'"
],
"context": [
{
"key": "lsp.session_with_capability",
"operator": "equal",
"operand": "documentFormattingProvider | documentRangeFormattingProvider"
}
]
},
{ "keys": ["home"], "command": "move_to", "args": {"to": "bol"} },
{ "keys": ["end"], "command": "move_to", "args": {"to": "eol"} },
{ "keys": ["shift+end"], "command": "move_to", "args": {"to": "eol", "extend": true} },
{ "keys": ["shift+home"], "command": "move_to", "args": {"to": "bol", "extend": true } },
{ "keys": ["super+a"], "command": "select_all" },
{ "keys": ["super+s"], "command": "save", "args": { "async": true } },
{ "keys": ["super+x"], "command": "cut" },
{ "keys": ["super+c"], "command": "copy" },
// { "keys": ["ctrl+c"], "command": "terminus_keypress", "args": {"key": "c", "ctrl": true}, "context": [{"key": "terminus_view"}] },
{ "keys": ["super+v"], "command": "paste" },
{ "keys": ["super+shift+v"], "command": "paste_and_indent" },
{ "keys": ["super+z"], "command": "undo" },
{ "keys": ["super+shift+z"], "command": "redo" },
{ "keys": ["super+l"], "command": "expand_selection", "args": {"to": "line"} },
{ "keys": ["super+d"], "command": "find_under_expand" },
{ "keys": ["super+f"], "command": "show_panel", "args": {"panel": "find", "reverse": false} },
{ "keys": ["super+shift+f"], "command": "show_panel", "args": {"panel": "find_in_files"} },
{ "keys": ["super+p"], "command": "show_overlay", "args": {"overlay": "goto", "show_files": true} },
{ "keys": ["super+shift+p"], "command": "show_overlay", "args": {"overlay": "command_palette"} },
{ "keys": ["super+]"], "command": "indent" },
{ "keys": ["super+["], "command": "unindent" },
{ "keys": ["super+w"], "command": "close" },
{ "keys": ["super+shift+n"], "command": "new_window" },
{ "keys": ["super+shift+w"], "command": "close_window" },
{ "keys": ["super+o"], "command": "prompt_open" },
{ "keys": ["super+forward_slash"], "command": "toggle_comment", "args": { "block": false } },
{ "keys": ["super+;"], "command": "laravel_goto" }
]
@jhonoryza
Copy link
Author

mouse

    {
        "button": "button1", 
        "count": 1, 
        "modifiers": ["super"],
        "press_command": "drag_select",
        "command": "lsp_symbol_definition"
    }

@jhonoryza
Copy link
Author

update

[
    {
        "keys": ["super+shift+l"],
        "command": "show_overlay",
        "args": {"overlay": "command_palette", "text": "LSP: "}
    },
	{
        "command": "lsp_symbol_definition",
        "args": {
            "side_by_side": true
        },
        "keys": [
            "super+enter"
        ],
        "context": [
            {
                "key": "lsp.session_with_capability",
                "operator": "equal",
                "operand": "definitionProvider"
            },
            {
                "key": "auto_complete_visible",
                "operator": "equal",
                "operand": false
            }
        ]
    },

    {
        "command": "lsp_format_document",
        "keys": [
            "super+shift+'"
        ],
        "context": [
            {
                "key": "lsp.session_with_capability",
                "operator": "equal",
                "operand": "documentFormattingProvider | documentRangeFormattingProvider"
            }
        ]
    },
    { "keys": ["super+b"], "command": "toggle_side_bar" },
    { "keys": ["super+t"], "command": "toggle_terminus_panel" },
    { "keys": ["super+shift+o"], "command": "close_all" },
    {
        "keys": ["super+shift+t"],
        "caption": "Terminus: Open Default Shell in Split Tab",
        "command": "terminus_open",
        "args": {
            "post_window_hooks": [
                ["carry_file_to_pane", {"direction": "down"}]
            ]
        }
    },
    {
      "keys": ["super+shift+;"],
      "command": "shell_exec_run",
      "args": {
        "format": "./vendor/bin/pint"
      }
    }
]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment