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