Comments (5)
I really like this idea. GRV won't able to support the full range of actions and flags offered by the git cli commands, so it would be useful to be able to run any git command from within GRV. I will look into adding this functionality.
from grv.
Awesome!! :)
from grv.
Yes, this is awesome news.
thx so much for GRV.
from grv.
A :git
command has been added to GRV which is capable of running non-interactive git commands (i.e. those that require no user input). Output from the command is displayed in a pop-up window. For example, running :git status
looks like:
A :giti
command has also been added which can run interactive git commands (i.e. those that require some form of user input). For this command grv suspends itself and executes the command in the controlling terminal. This is indended to be used with commands like git rebase -i HEAD~2
which will open up an editor, although it will work with any git command. For example, running :giti status
looks like:
So :giti ...
can be thought of as equivalent to doing :!git ...
in vim
.
Another aspect worth considering is defining custom key bindings to make running these commands easier:
map All gst "<grv-prompt>git status<Enter>"
map All gsl "<grv-prompt>git stash list<Enter>"
map All gsp "<grv-prompt>git stash pop<Enter>"
With the above mappings the :git status
command can be run by instead typing gst
or the :git stash list
command by typing gsl
.
This functionality is now available on master. Let me know if you have any thoughts, suggestions or feedback? Hopefully this is what was requested?
from grv.
This is exactly what I was requesting!
from grv.
Related Issues (20)
- No ignore in Status View?
- How can you use an url for the repoFilePath (or equivalent)
- How to open a bare repository?
- New feature: blame view
- FATAL: Unable to initialise grv Permission denied
- loading diff error buffer too long
- Error compiling - Invalid flag in pkg-config
- can not build grv on Mojave
- quit command not working
- Missing documentation: how to close pop-ups HOT 14
- Mouse misbehavior in v0.3.1 HOT 7
- initial layout HOT 2
- Problem in diff for lines starting with ```%``` HOT 4
- Freeze with 'git push' HOT 2
- Show mappings of commands in menu HOT 2
- Scrolling and highlight display not functioning correctly
- How to bind Escape to q (<grv-remove-view>)?
- <S-Tab>key (<grv-prev-view>) doesn't work
- grv's Status View shows untracked file which is not in `git status`
- Is it able to set the auto focused view when gvr starts?
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 grv.