From 50a6a217e251e285bd3f867a33367e0580fdb0ee Mon Sep 17 00:00:00 2001 From: Yan Lin Date: Sat, 26 Jul 2025 21:32:59 +0200 Subject: [PATCH] Add Finder integration to Neovim keybindings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add f keymap to show current file in Finder using 'open -R' - Update README.md with new keybinding documentation - Provides quick file location alongside existing o for opening 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- README.md | 1 + nvim.nix | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/README.md b/README.md index 736480f..6c0bc9d 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,7 @@ home-manager switch --flake github:Logan-Lin/nix-config#yanlin | `w` | Normal | Save file | | `q` | Normal | Quit | | `o` | Normal | Open file with system default app | +| `f` | Normal | Show current file in Finder | | `y` | Normal/Visual | Copy to system clipboard | | `p` | Normal/Visual | Paste from system clipboard | | `gs` | Normal | Git status | diff --git a/nvim.nix b/nvim.nix index 509359e..5bd1b45 100644 --- a/nvim.nix +++ b/nvim.nix @@ -139,6 +139,12 @@ action = ":silent !open %"; options = { desc = "Open file with system default app"; }; } + { + mode = "n"; + key = "f"; + action = ":silent !open -R %"; + options = { desc = "Show current file in Finder"; }; + } # Git keymaps (vim-fugitive) {