@@ -55,6 +55,14 @@ COMMANDS *diffview-commands*
55
55
:DiffviewOpen HEAD~2 -- lua/diffview plugin
56
56
:DiffviewOpen d4a7b0d -uno
57
57
<
58
+
59
+ *diffview-staging*
60
+ You can stage individual hunks by editing any buffer that represents
61
+ the index (after running `:DiffviewOpen` with no [git-rev] the entries
62
+ under "Changes" will have the index buffer on the left side, and the
63
+ entries under "Staged changes" will have it on the right side). Once
64
+ you write to an index buffer the index will be updated.
65
+
58
66
*diffview-merge-tool*
59
67
If you call `:DiffviewOpen` during a merge or a rebase, the view will
60
68
list the conflicted files in their own section. When opening a
@@ -98,7 +106,7 @@ COMMANDS *diffview-commands*
98
106
layouts. To configure a different default layout, see
99
107
| diffview-config-view.x.layout | .
100
108
101
- Options:~
109
+ Options: ~
102
110
-u[value], --untracked-files[={value} ]
103
111
Specify whether or not to show untracked files. If
104
112
flag is given without value; defaults to `true` .
@@ -171,7 +179,7 @@ COMMANDS *diffview-commands*
171
179
:'<,'>DiffviewFileHistory
172
180
<
173
181
174
- Options:~
182
+ Options: ~
175
183
--base={git-rev}
176
184
Specify a base git rev from which the right side of
177
185
the diff will be created. Use the special value
@@ -506,7 +514,7 @@ log_options *diffview-config-log_options*
506
514
to define different default log options for history targeting singular
507
515
files, and history targeting multiple paths, and/or directories.
508
516
509
- Fields:~
517
+ Fields: ~
510
518
{single_file} (`LogOptions` )
511
519
See | diffview.git.LogOptions | .
512
520
@@ -535,34 +543,34 @@ hooks *diffview-config-hooks*
535
543
Diffview. The hook events are also available as User autocommands. See
536
544
| diffview-user-autocmds | for more details.
537
545
538
- Available Events:~
546
+ Available Events: ~
539
547
{view_opened} (`fun(view: View)`)
540
548
Emitted after a new view has been opened. It's called after
541
549
initializing the layout in the new tabpage (all windows are
542
550
ready).
543
551
544
- Callback Parameters:~
552
+ Callback Parameters: ~
545
553
{view} (`View` )
546
554
The `View` instance that was opened.
547
555
548
556
{view_closed} (`fun(view: View)`)
549
557
Emitted after closing a view.
550
558
551
- Callback Parameters:~
559
+ Callback Parameters: ~
552
560
{view} (`View` )
553
561
The `View` instance that was closed.
554
562
555
563
{view_enter} (`fun(view: View)`)
556
564
Emitted just after entering the tabpage of a view.
557
565
558
- Callback Parameters:~
566
+ Callback Parameters: ~
559
567
{view} (`View` )
560
568
The `View` instance that was entered.
561
569
562
570
{view_leave} (`fun(view: View)`)
563
571
Emitted just before leaving the tabpage of a view.
564
572
565
- Callback Parameters:~
573
+ Callback Parameters: ~
566
574
{view} (`View` )
567
575
The `View` instance that's about to be left.
568
576
@@ -577,7 +585,7 @@ hooks *diffview-config-hooks*
577
585
that | :setlocal | will apply settings to the relevant buffer /
578
586
window.
579
587
580
- Callback Parameters:~
588
+ Callback Parameters: ~
581
589
{bufnr} (`integer` )
582
590
The buffer number of the new buffer.
583
591
@@ -589,7 +597,7 @@ hooks *diffview-config-hooks*
589
597
that | :setlocal | will apply settings to the relevant buffer /
590
598
window.
591
599
592
- Callback Parameters:~
600
+ Callback Parameters: ~
593
601
{bufnr} (`integer` )
594
602
The buffer number of the new buffer.
595
603
{winid} (`integer` )
@@ -665,7 +673,7 @@ keymaps *diffview-config-keymaps*
665
673
<
666
674
667
675
*diffview-actions*
668
- Actions~
676
+ Actions ~
669
677
670
678
Actions are key-mappable functions. You can access an action through
671
679
the config module: >
@@ -680,7 +688,7 @@ Actions~
680
688
Following are the different contexts described alongside possible
681
689
subjects, upon which actions called from their context, will act on.
682
690
683
- Contexts:~
691
+ Contexts: ~
684
692
{diff_view}
685
693
The windows containing the diff buffers in a Diffview.
686
694
@@ -738,7 +746,7 @@ Actions~
738
746
Any of the panels.
739
747
740
748
*diffview-available-actions*
741
- Available Actions~
749
+ Available Actions ~
742
750
743
751
close *diffview-actions-close*
744
752
Contexts: `view ` , `panel`
@@ -978,7 +986,7 @@ view_windo({cmd}, [targets]) *diffview-actions-view_windo*
978
986
| diffview-config-view.x.layout | .
979
987
980
988
*diffview-unused-actions*
981
- Unused actions~
989
+ Unused actions ~
982
990
983
991
Not all actions are mapped by default. The unused actions offer variations on
984
992
the functionality provided by other actions, or just different functionality
@@ -1037,7 +1045,7 @@ file panel.
1037
1045
• | diffview-actions |
1038
1046
1039
1047
*diffview-file-inference*
1040
- File inference~
1048
+ File inference ~
1041
1049
1042
1050
Actions that target a file will infer the target file according to a set of
1043
1051
simple rules:
@@ -1048,7 +1056,7 @@ simple rules:
1048
1056
the entry under the cursor.
1049
1057
1050
1058
*diffview-maps-view*
1051
- View maps~
1059
+ View maps ~
1052
1060
1053
1061
These maps are available in the diff buffers while a Diffview is the current
1054
1062
tabpage.
@@ -1087,7 +1095,7 @@ gf Open the local version of the file in a new split in a
1087
1095
y Copy the commit hash of the entry under the cursor.
1088
1096
1089
1097
*diffview-maps-file-panel*
1090
- File panel maps~
1098
+ File panel maps ~
1091
1099
1092
1100
These maps are available in the file panel buffer.
1093
1101
@@ -1134,7 +1142,7 @@ R Update the stats and entries in the file list.
1134
1142
<leader> e Bring focus to the file panel.
1135
1143
1136
1144
*diffview-maps-file-history-panel*
1137
- File history panel maps~
1145
+ File history panel maps ~
1138
1146
1139
1147
These mappings are available in the file history panel buffer (the panel
1140
1148
listing the commits).
@@ -1174,7 +1182,7 @@ o Open the diff for the selected item.
1174
1182
<leader> e Bring focus to the file history panel.
1175
1183
1176
1184
*diffview-maps-file-history-option-panel*
1177
- File history option panel maps~
1185
+ File history option panel maps ~
1178
1186
1179
1187
These mappings are available from the file history option panel. The option
1180
1188
panel will allow you to change the flags that will be passed to `git- log ` . A
0 commit comments