-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added help button with regex cheat sheet * Added raw string so no shenanigans happen * Update rexi.py --------- Co-authored-by: roy reznik <[email protected]>
- Loading branch information
Showing
6 changed files
with
84 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
REGEX_HELP = { | ||
r"^": "Start of line", | ||
r"$": "End of line", | ||
r"(a|b)": "a or b", | ||
r"[abc]": "Range (a or b or c)", | ||
r"[^abc]": "Not (a or b or c)", | ||
r"[a-q]": "Lower case letter from a to q", | ||
r"[0-7]": "Digit from 0 to 7", | ||
r"\\x": "Group/subpattern number x", | ||
r".*": "0 or more characters", | ||
r".": "Any chrarcter except \\n", | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,53 @@ | ||
Input { | ||
dock: top; | ||
width: 100%; | ||
width: 70%; | ||
} | ||
|
||
#output-container { | ||
height: 70%; | ||
} | ||
|
||
#select { | ||
dock: right; | ||
width: 20%; | ||
width: 15%; | ||
} | ||
|
||
#help { | ||
width: 15%; | ||
} | ||
|
||
#inputs { | ||
height: 4; | ||
} | ||
|
||
Help { | ||
align: center middle; | ||
} | ||
|
||
Help > Container { | ||
width: 50%; | ||
height: 70%; | ||
border: thick $background 80%; | ||
background: $surface; | ||
|
||
} | ||
|
||
Help > Container > Label{ | ||
margin: 1 1; | ||
} | ||
|
||
Help > Container > Horizontal { | ||
overflow-y: auto; | ||
} | ||
|
||
Help > Container > Horizontal > .helpKeys { | ||
width: 10%; | ||
margin: 0 1 | ||
} | ||
|
||
Help > Container > Horizontal > .helpValues { | ||
width: 90%; | ||
} | ||
|
||
Help > Container > Button { | ||
align: center middle; | ||
margin: 2 2; | ||
} |
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