refactor: reorganize keymaps into semantic namespaces
Restructure keybindings for improved discoverability and consistency with WezTerm/XMonad configurations. Separate keymaps from plugin configurations following single responsibility principle. Changes: - Create keymaps/ directory with semantic grouping: - general.nix: leader setup, page navigation - buffers.nix: buffer operations (bq, bQ, bl) - windows.nix: window operations (ws, wv, wq, wQ, wm) - find.nix: telescope find operations (ff, fg, fh, fc) - git.nix: unified git operations from gitsigns/fugitive/telescope - Adopt consistent q/Q pattern across containers: - bq/bQ for buffer quit (current/all others) - wq/wQ for window quit (current/all others) - Mirrors WezTerm's LEADER+p q / LEADER+t q pattern - Extract keymaps from plugin files: - telescope.nix: config only, keymaps moved to find.nix - fugitive.nix: config only, keymaps moved to git.nix - gitsigns.nix: config only, keymaps moved to git.nix - snacks.nix: config only, keymaps moved to buffers.nix - maximize.nix: config only, keymap moved to windows.nix - Remove smart-splits.nix (functionality replaced by native window ops) - Maintain navigation on dedicated modifiers (Ctrl+arrows/PageUp/PageDown) for consistency with WezTerm (ALT) and XMonad (Super)
This commit is contained in:
parent
e9e5bb07fb
commit
f6f92ec15e
12 changed files with 438 additions and 324 deletions
|
|
@ -18,73 +18,12 @@
|
|||
settings = {
|
||||
defaults = {
|
||||
layout_strategy = "horizontal";
|
||||
# Reduce height / width of picker
|
||||
# Reduce height / width of picker
|
||||
layout_config = {
|
||||
height = 0.8;
|
||||
width = 0.8;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# Configure our telescope keymaps.
|
||||
keymaps = {
|
||||
# Find
|
||||
"<leader>ff" = {
|
||||
action = "find_files";
|
||||
options = {
|
||||
desc = "Find project files";
|
||||
};
|
||||
};
|
||||
"<leader>fg" = {
|
||||
action = "live_grep";
|
||||
options = {
|
||||
desc = "Find pattern";
|
||||
};
|
||||
};
|
||||
"<leader>fb" = {
|
||||
action = "buffers";
|
||||
options = {
|
||||
desc = "Find open buffers";
|
||||
};
|
||||
};
|
||||
"<leader>fh" = {
|
||||
action = "help_tags";
|
||||
options = {
|
||||
desc = "Find help tags";
|
||||
};
|
||||
};
|
||||
"<leader>fc" = {
|
||||
action = "commands";
|
||||
options = {
|
||||
desc = "Find commands";
|
||||
};
|
||||
};
|
||||
|
||||
# Git List
|
||||
"<leader>glc" = {
|
||||
action = "git_commits";
|
||||
options = {
|
||||
desc = "List git commits";
|
||||
};
|
||||
};
|
||||
"<leader>glb" = {
|
||||
action = "git_branches";
|
||||
options = {
|
||||
desc = "List git branches";
|
||||
};
|
||||
};
|
||||
"<leader>gld" = {
|
||||
action = "git_status";
|
||||
options = {
|
||||
desc = "List git diff";
|
||||
};
|
||||
};
|
||||
"<leader>gls" = {
|
||||
action = "git_stash";
|
||||
options = {
|
||||
desc = "List git stash";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue