:editbut it doesn't work for me as i want the file to be opened in my already opened vim session, not in a new one
bind generic xf +sh -c "cat %(file) | pbcopy && echo File Copied Into The Cliboard (paste with Cmd-V)"
to test it print file content correctly
commit current changes as new commit,
ammend, pull, push. Someone the introduction documentation does not cover stuff line this.
Nope, the default configuration doesn't cover those commands. (Check https://github.com/jonas/tig/blob/master/tigrc or just press
h to enter help view)
tig is just a pager for
git commands, what make it powerful is you can bind your own commands/scripts with keys in different view.s
Here is my own .tigrc, nearly make me perform all frequently-used git commands in few seconds. For example:
c to commit with only title (in status view)
Cto have a full commit (in status view)
a to amend previous commit (in main and status view)
F to fetch current branch (in main view)
C-F to fetch remote in current line (in main view)
pp to directory push to remote of current branch
pP to force push
pr to push a given remote
pd to delete remote branch
Take a look and you'll find
.tigrc is self-explained and so easy to configure. (Also, don't forget to read
! Run the command in the foreground with output shown. @ Run the command in the background with no output. + Run the command synchronously, and echo the first line of output to the status bar. ? Prompt the user before executing the command. > For a new tig instance < Exit Tig after executing the command.