Adds items to a talon list when certain git commands are executed, allowing files to be easily selected by voice.
Project description
Git item labeller for Talon
These scripts replace git commands, numbering items in the output and creating a talon list of the items so they can be referred to with voice commands. For example:
$ git tl-status
On branch master
No commits yet
Untracked files:
(use "git add <file>..." to include in what will be committed)
1. .gitignore
2. README.md
3. status.py
4. utils.py
nothing added to commit but untracked files present (use "git add" to track)
with the following items being added to a list:
{'one': '.gitignore', 'two': 'README.md', 'three': 'status.py', 'four': 'utils.py'}
Instructions
- Install pipx:
pip3 install pipx
- Install the
talon_git_labeller
package globally:
pipx install talon_git_labeller
- Switch to using the new git commands:
git status
->git tl-status
git branch
->git tl-branch
git stash pop
->git tl-stash-pop
- Create some commands to use the
git_status_items
andgit_branch_items
lists in talon, e.g.:
git status: "git tl-status\n"
git add {user.git_status_items}: "git add '{git_status_items}'"
git diff {user.git_status_items}: "git diff '{git_status_items}'"
git file {user.git_status_items}: "'{git_status_items}'"
git branch: "git tl-branch\n"
git checkout {user.git_branch_items}: "git checkout '{git_branch_items}'"
- Use the commands by saying e.g. "git add one" after using "git tl-status" in a git repository.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file talon_git_labeller-0.1.6.tar.gz
.
File metadata
- Download URL: talon_git_labeller-0.1.6.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82ab48c5f13993d455e6e53d4a2d8b572c07d584e26d79ef7c31c336977c481a |
|
MD5 | ca96b84fcc2dfcb42d965280cdf4e34d |
|
BLAKE2b-256 | bf6294d0c9ea7b2349fadc042a84a122391c965403b1a5211038e3d000ea9a34 |
File details
Details for the file talon_git_labeller-0.1.6-py3-none-any.whl
.
File metadata
- Download URL: talon_git_labeller-0.1.6-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 820903d6d3c5370fe2d47819be5d28cdd42e0c12da948c674de9e7311003317e |
|
MD5 | 24989b7b0c0da86507a885902e45d456 |
|
BLAKE2b-256 | c9519a82e9a279d69a3d7e867e62bfaf82e1fb1641914cac6208724236c54b6c |