Skip to content

Commit 15f5508

Browse files
committed
feat: add new file renaming functionality
1 parent 833dc4a commit 15f5508

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

src/content/docs/mappings.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ AstroNvim generally relies on `<Leader>` driven mappings, which is default set t
2525
| Force Write | `Ctrl + s` |
2626
| Force Quit | `Ctrl + q` |
2727
| New File | `Leader + n` |
28+
| Rename Current File | `Leader + R` |
2829
| Close Buffer | `Leader + c` |
2930
| Next Tab (real vim tab) | `]t` |
3031
| Previous Tab (real vim tab) | `[t` |
@@ -59,7 +60,7 @@ AstroNvim generally relies on `<Leader>` driven mappings, which is default set t
5960

6061
| Action | Mappings |
6162
| ------------------------- | ------------- |
62-
| Open Quickfix List | `Leader + xq` |
63+
| Open Quickfix List | `Leader + xq` |
6364
| Next Quickfix Entry | `]q` |
6465
| Previous Quickfix Entry | `[q` |
6566
| Last Quickfix Entry | `]Q` |

src/content/docs/reference/autocmds.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,14 @@ Neovim autocmd events, check the help page with `:h autocmd-events`.
4444
`:AstroMasonUpdateAll`. `AstroMasonUpdateCompleted` is triggered after all of the
4545
available updates have been applied.
4646

47+
- `AstroRenameFilePre`: AstroCore provides a `rename_file` method for easily
48+
renaming files. `AstroRenameFilePre` is triggered immediately prior to
49+
performing the file rename.
50+
51+
- `AstroRenameFilePost`: AstroCore provides a `rename_file` method for easily
52+
renaming files. `AstroRenameFilePost` is triggered immediately after performing
53+
the file rename.
54+
4755
### Example Autocommand Usage
4856

4957
Just to demonstrate the usage of `User` autocommand events in Neovim here is an

0 commit comments

Comments
 (0)