@@ -55,6 +55,14 @@ COMMANDS *diffview-commands*
5555 :DiffviewOpen HEAD~2 -- lua/diffview plugin
5656 :DiffviewOpen d4a7b0d -uno
5757<
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+
5866 *diffview-merge-tool*
5967 If you call `:DiffviewOpen` during a merge or a rebase, the view will
6068 list the conflicted files in their own section. When opening a
@@ -98,7 +106,7 @@ COMMANDS *diffview-commands*
98106 layouts. To configure a different default layout, see
99107 | diffview-config-view.x.layout | .
100108
101- Options:~
109+ Options: ~
102110 -u[value], --untracked-files[={value} ]
103111 Specify whether or not to show untracked files. If
104112 flag is given without value; defaults to `true` .
@@ -171,7 +179,7 @@ COMMANDS *diffview-commands*
171179 :'<,'>DiffviewFileHistory
172180<
173181
174- Options:~
182+ Options: ~
175183 --base={git-rev}
176184 Specify a base git rev from which the right side of
177185 the diff will be created. Use the special value
@@ -506,7 +514,7 @@ log_options *diffview-config-log_options*
506514 to define different default log options for history targeting singular
507515 files, and history targeting multiple paths, and/or directories.
508516
509- Fields:~
517+ Fields: ~
510518 {single_file} (`LogOptions` )
511519 See | diffview.git.LogOptions | .
512520
@@ -535,34 +543,34 @@ hooks *diffview-config-hooks*
535543 Diffview. The hook events are also available as User autocommands. See
536544 | diffview-user-autocmds | for more details.
537545
538- Available Events:~
546+ Available Events: ~
539547 {view_opened} (`fun(view: View)`)
540548 Emitted after a new view has been opened. It's called after
541549 initializing the layout in the new tabpage (all windows are
542550 ready).
543551
544- Callback Parameters:~
552+ Callback Parameters: ~
545553 {view} (`View` )
546554 The `View` instance that was opened.
547555
548556 {view_closed} (`fun(view: View)`)
549557 Emitted after closing a view.
550558
551- Callback Parameters:~
559+ Callback Parameters: ~
552560 {view} (`View` )
553561 The `View` instance that was closed.
554562
555563 {view_enter} (`fun(view: View)`)
556564 Emitted just after entering the tabpage of a view.
557565
558- Callback Parameters:~
566+ Callback Parameters: ~
559567 {view} (`View` )
560568 The `View` instance that was entered.
561569
562570 {view_leave} (`fun(view: View)`)
563571 Emitted just before leaving the tabpage of a view.
564572
565- Callback Parameters:~
573+ Callback Parameters: ~
566574 {view} (`View` )
567575 The `View` instance that's about to be left.
568576
@@ -577,7 +585,7 @@ hooks *diffview-config-hooks*
577585 that | :setlocal | will apply settings to the relevant buffer /
578586 window.
579587
580- Callback Parameters:~
588+ Callback Parameters: ~
581589 {bufnr} (`integer` )
582590 The buffer number of the new buffer.
583591
@@ -589,7 +597,7 @@ hooks *diffview-config-hooks*
589597 that | :setlocal | will apply settings to the relevant buffer /
590598 window.
591599
592- Callback Parameters:~
600+ Callback Parameters: ~
593601 {bufnr} (`integer` )
594602 The buffer number of the new buffer.
595603 {winid} (`integer` )
@@ -665,7 +673,7 @@ keymaps *diffview-config-keymaps*
665673<
666674
667675 *diffview-actions*
668- Actions~
676+ Actions ~
669677
670678 Actions are key-mappable functions. You can access an action through
671679 the config module: >
@@ -680,7 +688,7 @@ Actions~
680688 Following are the different contexts described alongside possible
681689 subjects, upon which actions called from their context, will act on.
682690
683- Contexts:~
691+ Contexts: ~
684692 {diff_view}
685693 The windows containing the diff buffers in a Diffview.
686694
@@ -738,7 +746,7 @@ Actions~
738746 Any of the panels.
739747
740748 *diffview-available-actions*
741- Available Actions~
749+ Available Actions ~
742750
743751close *diffview-actions-close*
744752 Contexts: `view ` , `panel`
@@ -978,7 +986,7 @@ view_windo({cmd}, [targets]) *diffview-actions-view_windo*
978986 | diffview-config-view.x.layout | .
979987
980988 *diffview-unused-actions*
981- Unused actions~
989+ Unused actions ~
982990
983991Not all actions are mapped by default. The unused actions offer variations on
984992the functionality provided by other actions, or just different functionality
@@ -1037,7 +1045,7 @@ file panel.
10371045 • | diffview-actions |
10381046
10391047 *diffview-file-inference*
1040- File inference~
1048+ File inference ~
10411049
10421050Actions that target a file will infer the target file according to a set of
10431051simple rules:
@@ -1048,7 +1056,7 @@ simple rules:
10481056 the entry under the cursor.
10491057
10501058 *diffview-maps-view*
1051- View maps~
1059+ View maps ~
10521060
10531061These maps are available in the diff buffers while a Diffview is the current
10541062tabpage.
@@ -1087,7 +1095,7 @@ gf Open the local version of the file in a new split in a
10871095y Copy the commit hash of the entry under the cursor.
10881096
10891097 *diffview-maps-file-panel*
1090- File panel maps~
1098+ File panel maps ~
10911099
10921100These maps are available in the file panel buffer.
10931101
@@ -1134,7 +1142,7 @@ R Update the stats and entries in the file list.
11341142<leader> e Bring focus to the file panel.
11351143
11361144 *diffview-maps-file-history-panel*
1137- File history panel maps~
1145+ File history panel maps ~
11381146
11391147These mappings are available in the file history panel buffer (the panel
11401148listing the commits).
@@ -1174,7 +1182,7 @@ o Open the diff for the selected item.
11741182<leader> e Bring focus to the file history panel.
11751183
11761184 *diffview-maps-file-history-option-panel*
1177- File history option panel maps~
1185+ File history option panel maps ~
11781186
11791187These mappings are available from the file history option panel. The option
11801188panel will allow you to change the flags that will be passed to `git- log ` . A
0 commit comments