-
Notifications
You must be signed in to change notification settings - Fork 210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cheat sheet standardized formatting #101
Comments
Hi! I have twitter (igor_chubin) and email (igor@chub.in). Feel free to use any of them, but I prefer email. I have the same problem too, and I would be glad to standardize that.
I tend to something like this:
Another interesting option to discuss, is usage of the front-matter format in the cheat sheets, for example for adding interlinks (like |
For what it's worth, @chubin, the front-matter approach has been working well for
|
navi - the new kid on the block also proposes some syntax: https://github.com/denisidoro/navi#syntax-overview |
@chrisallenlane Chris thank you for the feedback. I think that the we should adopt the front-matter approach as well. cheat.sh must support the cheat upstream repository anyway, so why not use the same format for this repository too. We should probably also standardize the names of the meta properties, at least the most important of them. What properties do you already have? @dufferzafar At least we should add navi cheat sheets as yet another cheat sheets upstream repository, and for that we need a initial implementation of the navi format on our side. |
Hi, @chubin Sorry for the delay once again. Things have been hectic. Currently,
It's possible Just shout if I can help 🙂 |
I'm also thinking about limiting the maximum cheat sheet width |
I'm all for that, Chubin! :D Or, and I'm willing to help migrate the sheets over, you could incorporate wrapping into the site, so that it would no longer matter how long lines are, but I think that might just get confusing (comment lines would then go on forever, and code could end up wrapped) and mean more work. I like the 80-column limit, though. |
I my opinion, it is better to enforce the width before the merge, so that the files in the repository are already formatted properly, and do not require post-processing. There can be some exceptions (links, embedded data, etc), but in general it should be ok |
I agree, to a point. With a complete forcing of <=80 columns, you have the issue of whether GitHub knows the difference between code (acceptable to be long lines, such as for one-liners) and comments. I'm not even remotely familiar with these checks GitHub performs, as I don't use them, so I'm not sure how easy that'd be to set up. Is there a way to have GitHub look only for the column length of comments and not code? That would be good. Then again, this project deals with different languages, so different commenting characters. Then you also have the issue of GitHub picking up on comment lines with, say, a link in it which is long; there's simply no sensible way to shorten that, so it has to stay long. EDIT: Just realised you mentioned links already, my bad. |
Lol Noice. That's an awesome system I had no idea GitHub had in spades. So, would GitHub (I know |
+1 for linting cheatsheets. I've been considering doing the same in
(I'm not sure about 1, because not all sheets necessarily should conform to this format.) I've been thinking about using Github Actions to implement this. I've been experimenting with these recently, and I'm happy with them so far. In the near-term, I'll likely move I'll gladly share any progress I make on that front (when I get around to it), if you folks are interested in it. |
We will probably use GitHub Actions too. I am using them in some other projects, and I am pretty happy with it. I like your list of checks. I would also add aspell’ing of the comment lines |
I disagree with you on point 1, Chris, because words like I think the use of things like 'To' make sense when the subject isn't implied, but the subject here is the associated code. I guess you could think of it like using @chubin, offering me a position as a collaborator means a lot, but I have to decline due to anonymity reasons. Thank you very much though, and know that I'm happy to contribute whenever I can. :) I wish I could contribute to your other projects, but they're in languages I know diddly-squat about. lol By the way, I think this whole discussion about Actions and GitHub's checks is really going to up my GitHub game, so thank you, guys! |
We also should standardize quotes usage in comments:
After that, at least for backticks, we could use other output format |
Was thinking of something like that earlier, so I'm on-board, for sure. Here's my suggestion:
I think we should work on one thing at a time, though. We have a lot of work getting through everything lenchk picks up. Lol That's what I'm thinking, at least. |
Hi @chubin !
I don't recall seeing a method by which I or another can contact you -- might be nice to set up an E-Mail for that, for these awesome projects of yours, if you haven't already done so. It would save creating issues like this.
Okay, so my question, regarding the formatting of the sheets, is whether this is preferred:
Or this, apt-cache(1)
search
style:Or this:
Reason being, my OCD screams at me when I see inconsistencies (lol), and I was hoping to, if you'd like, go through each of the cheets to make it either one of those styles, or perhaps another of your choosing.
What think you?
The text was updated successfully, but these errors were encountered: