Add system default app integration to Neovim
- Add <leader>o keymap to open current file with system default application - Uses ':silent \!open %' to prevent command output clutter - Update README with new keymap documentation - Enables quick preview of markdown, images, PDFs in native apps Enhances workflow by bridging Neovim editing with system-level file viewing. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
bdbf7a090c
commit
fe23254558
2 changed files with 9 additions and 0 deletions
|
|
@ -55,6 +55,7 @@ home-manager switch --flake github:Logan-Lin/nix-config#yanlin
|
|||
| `<Space>e` | Normal | Toggle file explorer |
|
||||
| `<Space>w` | Normal | Save file |
|
||||
| `<Space>q` | Normal | Quit |
|
||||
| `<Space>o` | Normal | Open file with system default app |
|
||||
| `<Space>y` | Normal/Visual | Copy to system clipboard |
|
||||
| `<Space>p` | Normal/Visual | Paste from system clipboard |
|
||||
| `<Space>gs` | Normal | Git status |
|
||||
|
|
|
|||
8
nvim.nix
8
nvim.nix
|
|
@ -132,6 +132,14 @@
|
|||
options = { desc = "Replace selection with system clipboard"; };
|
||||
}
|
||||
|
||||
# System integration
|
||||
{
|
||||
mode = "n";
|
||||
key = "<leader>o";
|
||||
action = ":silent !open %<CR>";
|
||||
options = { desc = "Open file with system default app"; };
|
||||
}
|
||||
|
||||
# Git keymaps (vim-fugitive)
|
||||
{
|
||||
mode = "n";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue