Skip to content

action to rename the base name of file without changing directory or extension (#1155) #1791

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 25 commits into from
Dec 16, 2022
Merged
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
34a5b70
relative rename action
ianhomer Nov 30, 2022
2646bfa
🔥 remove debug print statement
ianhomer Nov 30, 2022
9dbef88
🐛 better handling of dot files
ianhomer Dec 3, 2022
af57e87
🔧 keymap e for relative-rename action
ianhomer Dec 3, 2022
470132e
📝 update help with relative-rename mapping
ianhomer Dec 3, 2022
47312e0
✨ add API for rename_relative
ianhomer Dec 3, 2022
feb22bb
🚨 correct lint warnings
ianhomer Dec 3, 2022
7c70489
rename_relative -> rename_root
alex-courtis Dec 4, 2022
999f41b
stylua
alex-courtis Dec 4, 2022
c573ba3
♻️ use fnamemodify instead of custom logic
ianhomer Dec 4, 2022
b3fd1f2
💥 refactor renaming api using vim filename modifiers
ianhomer Dec 9, 2022
8ef88c9
🐛 make api rename, without args, functional
ianhomer Dec 9, 2022
9bf034a
✨ allow modifier argument to be used in API call
ianhomer Dec 9, 2022
5ed4524
📝 update documentation with new command name
ianhomer Dec 9, 2022
c097df2
rename-file.fn takes only a modifier as argument
alex-courtis Dec 10, 2022
0f05d74
add Api.fs.rename_basename, specify modifiers for rename, rename_sub
alex-courtis Dec 10, 2022
c190007
add Api.fs.rename_node
alex-courtis Dec 10, 2022
fa01542
rename-file tidy allowed modifiers
alex-courtis Dec 10, 2022
ff670c8
🐛 fix bugs after last refactoring
ianhomer Dec 10, 2022
98bbb09
🐛 correct absolute rename
ianhomer Dec 10, 2022
7dc6eda
🔥 remove debug print statements
ianhomer Dec 10, 2022
3571b01
Merge remote-tracking branch 'upstream/master' into feature/relative-…
alex-courtis Dec 11, 2022
291487d
Merge remote-tracking branch 'upstream/master' into feature/relative-…
alex-courtis Dec 11, 2022
3354ab3
stylua
alex-courtis Dec 11, 2022
0a515ba
Merge remote-tracking branch 'upstream/master' into feature/relative-…
alex-courtis Dec 16, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge remote-tracking branch 'upstream/master' into feature/relative-…
…rename
  • Loading branch information
alex-courtis committed Dec 11, 2022
commit 3571b01214b7b581849aff53bfa60f6da6cfcf41
10 changes: 6 additions & 4 deletions doc/nvim-tree-lua.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1317,12 +1317,12 @@ Single right / middle mouse mappings will requre changes to |mousemodel| or |mou

DEFAULT MAPPINGS *nvim-tree-default-mappings*

`<CR>` edit open a file or folder; root will cd to the above directory
`<CR>` edit open a file or folder; root will cd to the above directory
`o`
`<2-LeftMouse>`
`<C-e>` edit_in_place edit the file in place, effectively replacing the tree explorer
`O` edit_no_picker same as (edit) with no window picker
`<C-]>` cd cd in the directory under the cursor
`<C-e>` edit_in_place edit the file in place, effectively replacing the tree explorer
`O` edit_no_picker same as (edit) with no window picker
`<C-]>` cd cd in the directory under the cursor
`<2-RightMouse>`
`<C-v>` vsplit open the file in a vertical split
`<C-x>` split open the file in a horizontal split
Expand All @@ -1334,8 +1334,10 @@ DEFAULT MAPPINGS *nvim-tree-default-mappings
`<Tab>` preview open the file as a preview (keeps the cursor in the tree)
`K` first_sibling navigate to the first sibling of current file/directory
`J` last_sibling navigate to the last sibling of current file/directory
`C` toggle_git_clean toggle visibility of git clean via |filters.git_clean| option
`I` toggle_git_ignored toggle visibility of files/folders hidden via |git.ignore| option
`H` toggle_dotfiles toggle visibility of dotfiles via |filters.dotfiles| option
`B` toggle_no_buffer toggle visibility of files/folders hidden via |filters.no_buffer| option
`U` toggle_custom toggle visibility of files/folders hidden via |filters.custom| option
`R` refresh refresh the tree
`a` create add a file; leaving a trailing `/` will add a directory
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.