Skip to content

Commit e0f212f

Browse files
committed
Updated README.
1 parent 7c39217 commit e0f212f

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ local cb = require'diffview.config'.diffview_callback
4242
require'diffview'.setup {
4343
diff_binaries = false, -- Show diffs for binaries
4444
use_icons = true -- Requires nvim-web-devicons
45+
signs = {
46+
fold_closed = "",
47+
fold_open = "",
48+
},
4549
file_panel = {
4650
position = "left", -- One of 'left', 'right', 'top', 'bottom'
4751
width = 35, -- Only applies when position is 'left' or 'right'
@@ -139,7 +143,8 @@ rather than the file under the cursor in the file panel.
139143
![file-history-multi](https://user-images.githubusercontent.com/2786478/131269782-f4184640-6d73-4226-b425-feccb5002dd0.png)
140144

141145
The file history view allows you to list all the commits that changed a given
142-
file or directory, and view the changes made in a diff split.
146+
file or directory, and view the changes made in a diff split. Open a file
147+
history view for your current file by calling `:DiffviewFileHistory`.
143148

144149
## Usage
145150

@@ -154,6 +159,7 @@ for that rev. Examples:
154159
- `:DiffviewOpen HEAD~4..HEAD~2`
155160
- `:DiffviewOpen d4a7b0d`
156161
- `:DiffviewOpen d4a7b0d..519b30e`
162+
- `:DiffviewOpen origin/main...HEAD`
157163

158164
You can also provide additional paths to narrow down what files are shown:
159165

@@ -176,7 +182,9 @@ files with `<tab>` and `<s-tab>` (see configuration to change the key bindings).
176182

177183
Opens a new file history view that lists all commits that changed a given file
178184
or directory. If no `[paths]` are given, defaults to the current file. Multiple
179-
`[paths]` may be provided.
185+
`[paths]` may be provided. If you want to view the file history for all changed
186+
files for every commit, simply call `:DiffviewFileHistory .` (assuming your cwd
187+
is the top level of the git repository).
180188

181189
## Tips
182190

doc/diffview.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ Example configuration with default settings:
3939
require'diffview'.setup {
4040
diff_binaries = false, -- Show diffs for binaries
4141
use_icons = true -- Requires nvim-web-devicons
42+
signs = {
43+
fold_closed = "",
44+
fold_open = "",
45+
},
4246
file_panel = {
4347
position = "left", -- One of 'left', 'right', 'top', 'bottom'
4448
width = 35, -- Only applies when position is 'left' or 'right'

0 commit comments

Comments
 (0)