Git Product home page Git Product logo

Comments (5)

rgburke avatar rgburke commented on May 28, 2024

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.

gabeduke avatar gabeduke commented on May 28, 2024

Awesome!! :)

from grv.

mckellyln avatar mckellyln commented on May 28, 2024

Yes, this is awesome news.
thx so much for GRV.

from grv.

rgburke avatar rgburke commented on May 28, 2024

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:

grv-git-status

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:

grv-giti-status

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.

gabeduke avatar gabeduke commented on May 28, 2024

This is exactly what I was requesting! 😄

from grv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.