Add Finder integration to Neovim keybindings

- Add <leader>f keymap to show current file in Finder using 'open -R'
- Update README.md with new keybinding documentation
- Provides quick file location alongside existing <leader>o for opening

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Yan Lin 2025-07-26 21:32:59 +02:00
parent fe23254558
commit 50a6a217e2
2 changed files with 7 additions and 0 deletions

View file

@ -56,6 +56,7 @@ home-manager switch --flake github:Logan-Lin/nix-config#yanlin
| `<Space>w` | Normal | Save file |
| `<Space>q` | Normal | Quit |
| `<Space>o` | Normal | Open file with system default app |
| `<Space>f` | Normal | Show current file in Finder |
| `<Space>y` | Normal/Visual | Copy to system clipboard |
| `<Space>p` | Normal/Visual | Paste from system clipboard |
| `<Space>gs` | Normal | Git status |

View file

@ -139,6 +139,12 @@
action = ":silent !open %<CR>";
options = { desc = "Open file with system default app"; };
}
{
mode = "n";
key = "<leader>f";
action = ":silent !open -R %<CR>";
options = { desc = "Show current file in Finder"; };
}
# Git keymaps (vim-fugitive)
{