From 47425332df90e19dbe6261fde3d919912faa3be6 Mon Sep 17 00:00:00 2001 From: NikolayHD Date: Tue, 22 Mar 2022 15:14:55 +0300 Subject: [PATCH] Updated Custom Commands Compendium (markdown) --- Custom-Commands-Compendium.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Custom-Commands-Compendium.md b/Custom-Commands-Compendium.md index fd7abfd..0153749 100644 --- a/Custom-Commands-Compendium.md +++ b/Custom-Commands-Compendium.md @@ -224,4 +224,18 @@ customCommands: context: remoteBranches description: tig branch (`t` again to browse files at revision) subprocess: yes +``` +## File history via [tig](https://jonas.github.io/tig/) +```yml +customCommands: + - key: t + command: tig {{.SelectedSubCommit.Sha}} -- {{.SelectedCommitFile.Name}} + context: commitFiles + description: tig file (history of commits affecting file) + subprocess: yes + - key: t + command: tig -- {{.SelectedFile.Name}} + context: files + description: tig file (history of commits affecting file) + subprocess: yes ``` \ No newline at end of file