@@ -97,6 +97,8 @@ DEFAULT CONFIG *diffview.defaults*
9797 -- tabpage is a Diffview.
9898 { "n", "<tab> ", actions.select_next_entry, { desc = "Open the diff for the next file" } },
9999 { "n", "<s-tab> ", actions.select_prev_entry, { desc = "Open the diff for the previous file" } },
100+ { "n", "[F", actions.select_first_entry, { desc = "Open the diff for the first file" } },
101+ { "n", "]F", actions.select_last_entry, { desc = "Open the diff for the last file" } },
100102 { "n", "gf", actions.goto_file_edit, { desc = "Open the file in the previous tabpage" } },
101103 { "n", "<C-w><C-f> ", actions.goto_file_split, { desc = "Open the file in a new split" } },
102104 { "n", "<C-w> gf", actions.goto_file_tab, { desc = "Open the file in a new tabpage" } },
@@ -162,6 +164,8 @@ DEFAULT CONFIG *diffview.defaults*
162164 { "n", "<c-f> ", actions.scroll_view(0.25), { desc = "Scroll the view down" } },
163165 { "n", "<tab> ", actions.select_next_entry, { desc = "Open the diff for the next file" } },
164166 { "n", "<s-tab> ", actions.select_prev_entry, { desc = "Open the diff for the previous file" } },
167+ { "n", "[F", actions.select_first_entry, { desc = "Open the diff for the first file" } },
168+ { "n", "]F", actions.select_last_entry, { desc = "Open the diff for the last file" } },
165169 { "n", "gf", actions.goto_file_edit, { desc = "Open the file in the previous tabpage" } },
166170 { "n", "<C-w><C-f> ", actions.goto_file_split, { desc = "Open the file in a new split" } },
167171 { "n", "<C-w> gf", actions.goto_file_tab, { desc = "Open the file in a new tabpage" } },
@@ -186,9 +190,7 @@ DEFAULT CONFIG *diffview.defaults*
186190 { "n", "y", actions.copy_hash, { desc = "Copy the commit hash of the entry under the cursor" } },
187191 { "n", "L", actions.open_commit_log, { desc = "Show commit details" } },
188192 { "n", "X", actions.restore_entry, { desc = "Restore file to the state from the selected entry" } },
189- { "n", "zr", actions.open_fold, { desc = "Expand fold" } },
190193 { "n", "zo", actions.open_fold, { desc = "Expand fold" } },
191- { "n", "zm", actions.close_fold, { desc = "Collapse fold" } },
192194 { "n", "zc", actions.close_fold, { desc = "Collapse fold" } },
193195 { "n", "h", actions.close_fold, { desc = "Collapse fold" } },
194196 { "n", "za", actions.toggle_fold, { desc = "Toggle fold" } },
@@ -206,6 +208,8 @@ DEFAULT CONFIG *diffview.defaults*
206208 { "n", "<c-f> ", actions.scroll_view(0.25), { desc = "Scroll the view down" } },
207209 { "n", "<tab> ", actions.select_next_entry, { desc = "Open the diff for the next file" } },
208210 { "n", "<s-tab> ", actions.select_prev_entry, { desc = "Open the diff for the previous file" } },
211+ { "n", "[F", actions.select_first_entry, { desc = "Open the diff for the first file" } },
212+ { "n", "]F", actions.select_last_entry, { desc = "Open the diff for the last file" } },
209213 { "n", "gf", actions.goto_file_edit, { desc = "Open the file in the previous tabpage" } },
210214 { "n", "<C-w><C-f> ", actions.goto_file_split, { desc = "Open the file in a new split" } },
211215 { "n", "<C-w> gf", actions.goto_file_tab, { desc = "Open the file in a new tabpage" } },
0 commit comments