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) {