diff --git a/README.md b/README.md
index 7fad869..ecd9b3a 100644
--- a/README.md
+++ b/README.md
@@ -95,7 +95,9 @@ through these hashes and interact with them using the following key commands:
* j, down - select next hash.
* k, up - select previous hash.
-* enter, d - view diff of selected hash.
+* u, Page Up - move up 5 hashes
+* d, Page Down - move down 5 hashes
+* enter, f - view diff of selected hash.
* specifically, this runs `git -c core.pager='less -+F' show -w `.
* c - checkout the selected hash.
* y - copy the selected hash to the clipboard.
@@ -106,7 +108,12 @@ through these files and interact with them using the following key commands:
* j, down - select next file.
* k, up - select previous file.
+* u, Page Up - move up 5 files
+* d, Page Down - move down 5 files
* enter, e - runs `$EDITOR `.
+* f - view diff of the current file
+ * specifically, this runs `git -c core.pager='less -+F' diff -w `.
+* x - remove the selected file (you are prompted for y/n first).
* y - copy the selected filename to the clipboard.
*Note:* You must set your `$EDITOR` environment variable to use the editor
diff --git a/src/command/LogCommand.ts b/src/command/LogCommand.ts
index 53e05bf..274b7dd 100644
--- a/src/command/LogCommand.ts
+++ b/src/command/LogCommand.ts
@@ -10,7 +10,7 @@ export class LogCommand extends Command {
this.navigator.key(['u', 'pageup'], () => this.navigator.navigatePrev(5));
- this.navigator.key(['enter'], () => {
+ this.navigator.key(['enter', 'f'], () => {
this.navigator.clear();
this.program.spawn('git', [
'-c',
diff --git a/src/command/StatusCommand.ts b/src/command/StatusCommand.ts
index 1a2fd0a..d3671ab 100644
--- a/src/command/StatusCommand.ts
+++ b/src/command/StatusCommand.ts
@@ -14,6 +14,17 @@ export class StatusCommand extends Command {
this.program.copyToClipboard(this.navigator.getSelectedBlock().block);
});
+ this.navigator.key(['f'], () => {
+ this.navigator.clear();
+ this.program.spawn('git', [
+ '-c',
+ 'core.pager=less -+F',
+ 'diff',
+ '-w',
+ this.navigator.getSelectedBlock().block,
+ ]);
+ });
+
this.navigator.key(['enter', 'e'], () => {
this.navigator.clear();
this.program.spawn(process.env.EDITOR, [