forked from idank/explainshell
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
matcher, es.js: explain shell expansions such as ~, $@ (fixes idank#55)
These are displayed differently in the UI. Instead of using the usual help box with a line connected to it, we display a popover when hovering over an expansion. Also, color them in red and write something at the top of the page so people notice. The reason we don't reuse the existing logic for displaying them is that right now the UI isn't really suited for nested explanations, so in the following command: $ echo "a $1" the word "a $1" is an argument of echo and has its own help box, but if we wanted to give $1 one too it would somehow have to overlap the outer one. It's doable but too complicated, and I'm quite happy with this alternative.
- Loading branch information
Showing
5 changed files
with
205 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters