Coder Social home page Coder Social logo

use of # is awkward for bash users about gr HOT 11 CLOSED

alexcb avatar alexcb commented on August 15, 2024
use of # is awkward for bash users

from gr.

Comments (11)

luolong avatar luolong commented on August 15, 2024

+1

I do agree, that using a hash is awkward, and the results are umm less than imformative.

I would suggest revising README and documentation to reflect this. -t <tag> ... works perfectly.

from gr.

alexgorbatchev avatar alexgorbatchev commented on August 15, 2024

šŸ‘ can't run hashtags at all in zsh...

$ gr #app git status
zsh: bad pattern: #app

from gr.

alexgorbatchev avatar alexgorbatchev commented on August 15, 2024

I found an awkward workaround in zsh

$ gr '+#app' ./foo

from gr.

memming avatar memming commented on August 15, 2024

+1

I agree. '#' doesn't work very well for bash users since it makes rest of the line a comment.

from gr.

cackovic avatar cackovic commented on August 15, 2024

+1

I put in pull request #9 that adds support for '@'

from gr.

mixu avatar mixu commented on August 15, 2024

Hi all, sorry for the delay on getting this merged. I realized I had accidentally unsubscribed from notifications on the repo so a lot of the recent issues went unnoticed. Will take a more active approach from now on, since it seems that a bunch of people find this project useful based on the number of stars. As a first step I'll merge that PR from @cackovic (thanks!) and get a new version out on npm, then see if I can get at least a few of the outstanding issues fixed. Thanks for you patience & support & interest.

from gr.

mixu avatar mixu commented on August 15, 2024

published as v0.3.0

from gr.

alexcb avatar alexcb commented on August 15, 2024

awesome - thanks for making this happen. Thanks to @cackovic too. I'll give the project a try again.

from gr.

cackovic avatar cackovic commented on August 15, 2024

Thanks for the merge. Iā€™m not sure about ā€˜@ā€˜ as a longterm solution because I want my git commands to be fast to enter. Maybe we could remove the need for ā€˜#ā€™ or ā€˜@ā€˜? This would streamline my typing. What does anyone else think?

On Nov 30, 2014, at 3:33 PM, Alex Couture-Beil [email protected] wrote:

awesome - thanks for making this happen. Thanks to @cackovic https://github.com/cackovic too. I'll give the project a try again.

ā€”
Reply to this email directly or view it on GitHub #1 (comment).

from gr.

mixu avatar mixu commented on August 15, 2024

That would be OK, but I'd like to have some tests around it so that it doesn't cause issues when there are directories with the same name, e.g. gr ./foo status is a valid invocation but I'm not sure what should happen if you run gr foo status and both ./foo and the foo tag exist.

Edit:
Another case is if you have a tags called git and status:

with gr git status ./sub is it

  • gr #git status ./sub (run status with ./sub argument in a tag set) or
  • gr #git #status ./sub (run ./sub in two tag sets)
  • gr ./git status ./sub (run status with ./sub argument in local folder) or
  • gr ./git ./status ./sub (run ./sub in two local folders)

Seems like this could become a bit too complicated...

from gr.

luolong avatar luolong commented on August 15, 2024

I am personally pretty used to invoking tags with gr -t tag by now that I really do not care all that much. I think typing @ instead of -t is already a big win in terms of keystrokes.

In any case, using tag names without any prefix what so ever seems way too ambiguous to justify.

from gr.

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.