jhillyerd / plugin-git

Git aliases plugin for the Fish shell (similar to oh-my-zsh git)
MIT License
607 stars 85 forks source link

tweaked the gcm abbr to preset the quotation marks #100

Closed hgibs closed 1 year ago

hgibs commented 1 year ago

I have been running the following gcm abbr in my config.fish to overwrite the one by default. I was wondering if this would be a better option as a default.

changes gcm from

git commit -m

to git commit -m "" and moves the cursor back to in-between the quotation marks.

The -m requires a message anyway, so why not use preset them?

Anyway, I'm open to suggestions of a different implementation but this should be a net improvement as I see it.

jhillyerd commented 1 year ago

Thanks. I don't want to require fish 3.6 for a long time, so I've created a branch for 3.6 only features and will merge into that.

hgibs commented 1 year ago

Thanks. I don't want to require fish 3.6 for a long time, so I've created a branch for 3.6 only features and will merge into that.

Totally makes sense. Do you think we should add a note or something like this to the readme?

fisher install jhillyerd/plugin-git@fish-3.6-required  # for 3.6+ installations
jhillyerd commented 1 year ago

Yes, I think that's reasonable given the extended timeline!