feat: base config
This commit is contained in:
commit
d4f9083772
11 files changed
+644
No files matched your search
+121
@@ -0,0 +1,121 @@
|
||||
// ╭────────────────────────────────╮
|
||||
// │- Gram editor keys -│
|
||||
// │- author: Daniel Heras Quesada -│
|
||||
// ╰────────────────────────────────╯
|
||||
[
|
||||
{
|
||||
"context": "Workspace || Editor || OutlinePanel || ProjectPanel || GitPanel || Terminal",
|
||||
"bindings": {
|
||||
"ctrl-h": "workspace::ActivatePaneLeft",
|
||||
"ctrl-l": "workspace::ActivatePaneRight",
|
||||
"ctrl-k": "workspace::ActivatePaneUp",
|
||||
"ctrl-j": "workspace::ActivatePaneDown",
|
||||
"ctrl-shift-f": "project_search::SearchInNew",
|
||||
"ctrl-shift-x": "task::Rerun",
|
||||
|
||||
"ctrl-e": "project_panel::ToggleFocus",
|
||||
"ctrl-a": "outline_panel::ToggleFocus",
|
||||
"ctrl-g": "git_panel::ToggleFocus",
|
||||
|
||||
"ctrl-p": "projects::OpenRecent",
|
||||
"ctrl-x": "task::Spawn",
|
||||
"ctrl-z": "workspace::ToggleBottomDock",
|
||||
"ctrl-m": "workspace::ToggleCenteredLayout",
|
||||
},
|
||||
},
|
||||
{
|
||||
"context": "Editor",
|
||||
"bindings": {
|
||||
"ctrl-t": "workspace::NewFile",
|
||||
"ctrl-w": "pane::CloseActiveItem",
|
||||
"ctrl-W": "pane::CloseOtherItems",
|
||||
|
||||
"ctrl-shift-l": "pane::SplitRight",
|
||||
"ctrl-shift-j": "pane::SplitDown",
|
||||
"ctrl-shift-h": "pane::SplitLeft",
|
||||
"ctrl-shift-k": "pane::SplitUp",
|
||||
},
|
||||
},
|
||||
{
|
||||
"context": "Editor && vim_mode == insert",
|
||||
"bindings": {
|
||||
// "j k": [
|
||||
// "workspace::SendKeystrokes",
|
||||
// "escape"
|
||||
// ]
|
||||
},
|
||||
},
|
||||
{
|
||||
"context": "OutlinePanel",
|
||||
"bindings": {
|
||||
"ctrl-a": "outline_panel::Toggle",
|
||||
},
|
||||
},
|
||||
{
|
||||
"context": "ProjectPanel",
|
||||
"bindings": {
|
||||
"ctrl-e": "project_panel::Toggle",
|
||||
"f12": "project_panel::Rename",
|
||||
"shift-enter": "workspace::OpenWithSystem",
|
||||
},
|
||||
},
|
||||
{
|
||||
"context": "GitPanel",
|
||||
"bindings": {
|
||||
"ctrl-g": "git_panel::Toggle",
|
||||
},
|
||||
},
|
||||
{
|
||||
"context": "ProjectPanel && not_editing",
|
||||
"bindings": {
|
||||
"d": "project_panel::Delete",
|
||||
"c": "project_panel::Copy",
|
||||
"r": "project_panel::Rename",
|
||||
"x": "project_panel::Cut",
|
||||
"Y": "workspace::CopyPath",
|
||||
"y": "project_panel::Copy",
|
||||
"p": "project_panel::Paste",
|
||||
"a": "project_panel::NewFile",
|
||||
"A": "project_panel::NewDirectory",
|
||||
"/": "project_panel::NewSearchInDirectory",
|
||||
"g h": "git::FileHistory",
|
||||
},
|
||||
},
|
||||
{
|
||||
"context": "Editor && (showing_code_actions || showing_completions)",
|
||||
"bindings": {
|
||||
"up": "editor::ContextMenuPrevious",
|
||||
"down": "editor::ContextMenuNext",
|
||||
"pageup": "editor::ContextMenuFirst",
|
||||
"pagedown": "editor::ContextMenuLast",
|
||||
"tab": "editor::ContextMenuNext",
|
||||
"shift-tab": "editor::ContextMenuPrevious",
|
||||
},
|
||||
},
|
||||
{
|
||||
"context": "Editor && vim_mode == normal",
|
||||
"bindings": {
|
||||
"shift-tab": "pane::ActivatePreviousItem",
|
||||
"tab": "pane::ActivateNextItem",
|
||||
|
||||
"space a": "outline::Toggle",
|
||||
"space r": "editor::Rename",
|
||||
"space x": "pane::CloseActiveItem",
|
||||
"space X": "pane::CloseAllItems",
|
||||
"space g g": "git_panel::Toggle",
|
||||
"space g h": "editor::ToggleSelectedDiffHunks",
|
||||
"space g b": "git::Blame",
|
||||
"space f a": "pane::DeploySearch",
|
||||
"space f w": "project_symbols::Toggle",
|
||||
"space f f": "file_finder::Toggle",
|
||||
"space space": "editor::FindAllReferences",
|
||||
},
|
||||
},
|
||||
{
|
||||
"context": "Terminal",
|
||||
"bindings": {
|
||||
"ctrl-t": "workspace::NewTerminal",
|
||||
"ctrl-w": "pane::CloseActiveItem",
|
||||
},
|
||||
},
|
||||
]
|
||||
Reference in new issue
Block a user