Comments (3)
Wow, those aliases are seriously comprehensive!
I'm not sure of the best way to implement your suggestion, but it certainly sounds like a great idea.
So, we could look for aliases that contain certain git commands, such as git add
, and then redefine those aliases to expand the args into filepaths. I like it. I especially like the idea of it augmenting your existing git aliases, instead of stomping all over them.
Alright, I'll leave this issue open and might work on it when I have some free time.
from scm_breeze.
Hi there, I've just pushed this feature up to the master branch. I've added a new git_augment_current_aliases
setting in the git.scmbrc
config file. If you set it to 'yes', then your existing git aliases will be parsed and augmented with the SCM Breeze wrapper, so you can then use the numeric shortcuts that it provides.
The major aliases will still be defined, however, such as gs
for the git status function, and ga
for the git add function.
E.g. if you have an alias like alias gco="git checkout"
, then SCM Breeze will automatically redefine it as alias gco="exec_git_expand_args git checkout"
. (This means you can type gco 1
to checkout the first file in the output of git status
.)
I know this is a very old issue, but would hugely appreciate it if you were able to test it out with your zsh config.
Thanks very much!
from scm_breeze.
Have just changed this option to git_setup_aliases
. Set it to 'no' to keep your existing aliases. git
is now wrapped in a function, so that zsh tab completion works by expanding any git aliases.
from scm_breeze.
Related Issues (20)
- Shell commands stopped getting wrapped HOT 4
- Separator is not working correctly HOT 2
- Path to .zshrc is hardcoded to ~/.zshrc
- command not found: compdef on zsh after upgrading from bash HOT 2
- ASYNC_PTYS[]: invalid parameter name HOT 2
- Bash completion doesn't work for git v2.30 HOT 3
- Option to use ogham / exa for ls_with_file_shortcuts as ll_command HOT 3
- `gd [number]` doesn't work in the submodule!! HOT 4
- Add test cases for branches containing `.` period characters.
- ll failed in Monterey Mac HOT 9
- Shortcut for vscode in WSL breaking when I use scm-breeze HOT 2
- update_scm_breeze giving a git protocol error HOT 4
- ohmyzsh & numbered shortcuts not working HOT 5
- Completions for 'gl' and 'gla' aliases doesn't work
- Running git funcitons in subshell breaks vared in zsh HOT 7
- File.exists? is deprecated in ruby 3.2.0 HOT 2
- Allow configurable maxdepth in repo_index
- Completions for folder names with parentheses/brackets dont work HOT 1
- git status does not show numbers HOT 5
- disable console output: scm_breeze: Design Assets management enabled HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scm_breeze.