.tigrc 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. set main-view-id = yes
  2. set git-colors = yes
  3. set mouse = yes
  4. set line-graphics = utf-8
  5. set show-untracked = yes
  6. set status-show-untracked-dirs = yes
  7. set status-show-untracked-files = yes
  8. set tab-size = 4
  9. set start-on-head = yes
  10. set main-view = line-number:no,interval=5 id:true date:default,format="%Y-%m-%d" author:no commit-title:yes,graph,refs,overflow=no
  11. # set diff-highlight = delta
  12. color title-focus white blue bold
  13. color title-blur white 17
  14. color graph-commit 12 default
  15. color main-tag magenta default
  16. color main-local-tag 11 default
  17. color cursor green 235
  18. color date 12 default
  19. color diff-header 13 default
  20. color diff-index 12 default
  21. color diff-chunk magenta default
  22. color diff-stat 12 default
  23. bind generic R :source ~/.tigrc
  24. bind generic q view-close-no-quit
  25. bind main Q view-close
  26. bind main o maximize
  27. bind main g move-first-line
  28. bind main G move-last-line
  29. bind main 1 move-first-line
  30. bind main $ move-last-line
  31. bind main <Ctrl-g> view-grep
  32. bind generic j scroll-line-down
  33. bind generic k scroll-line-up
  34. bind main j move-down
  35. bind main k move-up
  36. bind status j move-down
  37. bind status k move-up
  38. bind stage j move-down
  39. bind stage k move-up
  40. bind refs j move-down
  41. bind refs k move-up
  42. bind tree j move-down
  43. bind tree k move-up
  44. bind main I :toggle author-display
  45. bind main <Ctrl-f> move-page-down
  46. bind main <Ctrl-b> move-page-up
  47. bind main <Space> move-page-down
  48. bind main <Backspace> move-page-up
  49. bind stage f >bat -- %(file)
  50. bind stage F >vim -- %(file)
  51. bind diff F >git show %(commit)
  52. bind status g !git commit
  53. bind status G !git commit --amend
  54. # bind generic o @sh -c "printf '%s' %(commit) | pbcopy"
  55. set blame-view = \
  56. date:default \
  57. author:abbreviated \
  58. file-name:auto \
  59. id:yes,color \
  60. line-number:yes,interval=1 text