6

GitHub - matheuslessarodrigues/verco: A simple Git/Hg tui client focused on keyb...

 4 years ago
source link: https://github.com/matheuslessarodrigues/verco
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

verco

A simple Git/Hg tui client focused on keyboard shortcuts

Screenshots

Platforms

This project uses Cargo and pure Rust stable so it should work on Windows, Mac and Linux.

It depends on:

Install

You can either install it via cargo or download the binaries from github releases.

If you go the cargo route, you can install it using rustup. In a terminal, run this command to install verco:

cargo install verco

You'll be able to open verco from whichever directory you in.

Usage

In a terminal in a repository folder, run the verco command. It will launch verco's tui and you'll be able to interface with git/hg.

Actions

Key Sequence Action
h help
q quit
s status
ll log
lc log count
dd current diff all
ds current diff selected
DC revision changes
DD revision diff all
DS revision diff selected
cc commit all
cs commit selected
m merge
RA revert all
rs revert selected
rr list unresolved conflicts
ro resolve taking other
rl resolve taking local
f fetch
p pull
P push
tn new tag
bb list branches
bn new branch
bd delete branch
x custom action

Other Keybindings

Key Sequence Action
ctrl+c, esc cancel input/filter/select or quit
ctrl+j, ctrl+n, arrow down move down one line
ctrl+k, ctrl+p, arrow up move up one line
space select entry when selecting
enter accept selection
ctrl+f, / enter filter mode when viewing action result
ctrl+w clear filter
ctrl+h, backspace pop one char from filter

Custom Actions

You can create simple custom actions to run in your repository folder by placing them in the file .verco/custom_actions.txt in your repository root.

Each line in this file is treated as a different custom action. Until the first whitespace, the characters are treated as the keybind for the action, the next word is the command to be executed itself, and the rest are its parameters.

Example:

gv git --version

With verco open, you can type in xgv (x is the custom action prefix) and it will print your git version without leaving verco. Use it to create build tasks for example.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK