@@ -97,6 +97,8 @@ DEFAULT CONFIG *diffview.defaults*
97
97
-- tabpage is a Diffview.
98
98
{ "n", "<tab> ", actions.select_next_entry, { desc = "Open the diff for the next file" } },
99
99
{ "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" } },
100
102
{ "n", "gf", actions.goto_file_edit, { desc = "Open the file in the previous tabpage" } },
101
103
{ "n", "<C-w><C-f> ", actions.goto_file_split, { desc = "Open the file in a new split" } },
102
104
{ "n", "<C-w> gf", actions.goto_file_tab, { desc = "Open the file in a new tabpage" } },
@@ -162,6 +164,8 @@ DEFAULT CONFIG *diffview.defaults*
162
164
{ "n", "<c-f> ", actions.scroll_view(0.25), { desc = "Scroll the view down" } },
163
165
{ "n", "<tab> ", actions.select_next_entry, { desc = "Open the diff for the next file" } },
164
166
{ "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" } },
165
169
{ "n", "gf", actions.goto_file_edit, { desc = "Open the file in the previous tabpage" } },
166
170
{ "n", "<C-w><C-f> ", actions.goto_file_split, { desc = "Open the file in a new split" } },
167
171
{ "n", "<C-w> gf", actions.goto_file_tab, { desc = "Open the file in a new tabpage" } },
@@ -186,9 +190,7 @@ DEFAULT CONFIG *diffview.defaults*
186
190
{ "n", "y", actions.copy_hash, { desc = "Copy the commit hash of the entry under the cursor" } },
187
191
{ "n", "L", actions.open_commit_log, { desc = "Show commit details" } },
188
192
{ "n", "X", actions.restore_entry, { desc = "Restore file to the state from the selected entry" } },
189
- { "n", "zr", actions.open_fold, { desc = "Expand fold" } },
190
193
{ "n", "zo", actions.open_fold, { desc = "Expand fold" } },
191
- { "n", "zm", actions.close_fold, { desc = "Collapse fold" } },
192
194
{ "n", "zc", actions.close_fold, { desc = "Collapse fold" } },
193
195
{ "n", "h", actions.close_fold, { desc = "Collapse fold" } },
194
196
{ "n", "za", actions.toggle_fold, { desc = "Toggle fold" } },
@@ -206,6 +208,8 @@ DEFAULT CONFIG *diffview.defaults*
206
208
{ "n", "<c-f> ", actions.scroll_view(0.25), { desc = "Scroll the view down" } },
207
209
{ "n", "<tab> ", actions.select_next_entry, { desc = "Open the diff for the next file" } },
208
210
{ "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" } },
209
213
{ "n", "gf", actions.goto_file_edit, { desc = "Open the file in the previous tabpage" } },
210
214
{ "n", "<C-w><C-f> ", actions.goto_file_split, { desc = "Open the file in a new split" } },
211
215
{ "n", "<C-w> gf", actions.goto_file_tab, { desc = "Open the file in a new tabpage" } },
0 commit comments