-
Notifications
You must be signed in to change notification settings - Fork 356
alias: split alias into two pages: alias and unalias #183
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
alias: split alias into two pages: alias and unalias #183
Conversation
- list shells with alias/unalias available - warn about using aliases
Thanks for opening this, but I'm going to decline to merge. I'd prefer to keep cheatsheets brief, and I'd prefer not to insert context/commentary beyond the commands unless they're strictly necessary. |
What makes such output necessary then? As a person relying on strict rules I have to ask. 😊 If u mean that some change is necessary when at least one person don't understand the current page then here I am: if I were a newbie in Bash this comments would be useful for me. If this definition of necessarity is wrong can u explain me what you mean to help me review PRs correctly? Because now while reviewing PRs due to the absence of strict rules here I rely on some TlDr style guide ones. |
Hi, @EmilySeville7cfg Let me take a small step back and describe what I want (and don't want) in a cheatsheet pull-request. WantRegarding the minutia, this is generally what I want to see:
I waste an annoying, disproportionate amount of time making minor text edits like that on PRs, so if you want to keep your eyes open for those problems, that would be very helpful. (Frankly, I've gotten lazier about correcting some of these problems as they come in. I just don't have time to care right now.) (And, to clarify: I have never documented the "rules" above anywhere, so it's my fault alone if folks submit PRs that don't adhere to these guidelines. I can't expect contributors to read my mind.) Let me elaborate on two of those above:
The reasoning behind this is twofold: One, Two, and critically: one of the most important use-cases for
"Where possible" is critical here, because some cheatsheets simply must be formatted uniquely. The As an aside, these "weird" cheatsheets are the primary reason I haven't attempted to write a linter to enforce these "rules." They can only ever be "guidelines" instead of "rules," because certain cheatsheets aren't compatible with the typical format. ("Frontmatter must be valid" is the one obvious exception. I do plan to eventually build CI tooling to verify YAML correctness when a PR is opened.) Don't WantI am averse to PRs that engage in bikeshedding, which primarily rearrange whitespace or make subjective formatting changes. These are actively harmful to the project, because they consume my (and others') time, which could be better spent working on more impactful changes. (Note that I don't consider the correction of typos or technical errors to be bikeshedding. The contributions are valuable, if small.) I'm also somewhat averse to giant PRs that touch multiple cheatsheets at once - especially if they contain a mixture of small and large changes. These can take a long time to review, are likely to cause merge-conflicts with others' work, and generally waste my time and slow down progress. I hope that's helpful. It probably would be worth documenting this somewhere in the future. You can see the theme, though - I simply haven't had time to do this. Please let me know if you have any questions. Thanks. |
Can I just split
It should be clearly defined what is considered to be a confusion. Placeholder syntax with angle brackets breaks most shell's syntax in many examples: you can't copy-paste such examples without any edits because it's invalid syntax. As a workaround we can avoid placeholders at all and use valid variable syntax instead of them:
As a bonus: user will not be confused with a "strange new syntax" in examples because everything will be a valid shell syntax. Personally I can fix all pages to use variables instead of placeholders if u agree that it's a good suggestion. What I am suggesting now is an entirely different solution of writing pages compared to TlDr project where
I have one. 😄 Is it correct that this project aims to provide help system for commands without good help system via |
@EmilySeville7cfg
I wouldn't bother in the case of
This is a convention that has been widely used everywhere, though. Example: chris@longarm:~$ git --help
usage: git [--version] [--help] [-C <path>] [-c <name>=<value>]
[--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
[-p | --paginate | -P | --no-pager] [--no-replace-objects] [--bare]
[--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
<command> [<args>] This is why docopt syntax looks the way it does: it just codified the convention. I wouldn't worry too much about users being able to copy-and-paste commands. In most cases, they're going to need to make modifications anyway, even if only to specify file paths in place of placeholders regardless of what syntax is used, be it Lastly:
Neither, really. The goal of the project is just to provide a convenient tool for users to record the quick-and-dirty bash commands that they will need on a recurring basis. Think of it as a local cache for Stack Overflow: instead of Googling a command over and over again, just Google it once and store it in a cheatsheet. The community cheatsheets are just kind of a "bonus" on top of the above goal. But if there's perhaps two things I'd like to see in community cheatsheets, they are:
We aren't trying to recreate the |
Got it.
I understand it. So the only way I can help enhance project in this context is to check all pages to for conforming So I have no any questions no, thanks! 🚀 |
No description provided.