martinvonz / jj

A Git-compatible VCS that is both simple and powerful
https://martinvonz.github.io/jj/
Apache License 2.0
9.27k stars 321 forks source link

config: introduce default `at = @` revset alias #4432

Open thoughtpolice opened 2 months ago

thoughtpolice commented 2 months ago

When using Windows, @ is a bit of an annoyance to type in the terminal due to Windows Terminal escape rules, so you actually have to write it with a backtick in front. It's annoying to remember this and not possible to configure a different behavior, as far as I can see.

However, there is a smart trick you can do to make this a lot easier: just alias @ to the name at and be happy. Because:

I believe it was Stephen Jennings who came up with this trick first in Discord, and I have it in my aliases, but I run into it every time I try to use JJ on a fresh Windows VM to test stuff. Let's make life a little easier for everyone and just ship this by default.

Checklist

If applicable:

thoughtpolice commented 2 months ago

There's no changelog or docs yet but I'll get to it shortly assuming nobody has strong feelings on this.

jennings commented 2 months ago

I am honored!

but z is from the change alphabet

"z"? 🤔