-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- logSyntaxCtrl - made read-only. It will always point to the syntax we've found for the current log, and the user can't change that. - if the user sets a certain syntax, it will be applied to *the whole context*. The idea is that it doesn't make any sense to have two different files from the same context have different syntax. Even if theoretically that would happen, you can still have an extra choice: file-to-syntax. You'll just add an entry that finds the syntax based on something found in the file header. done: - on new file (that does not match any context) - we will create a context matching the name of the file (if one exists, we will automatically select it) - by default, we'll never go to the "Default" context - the idea is for the uesr not to have to mistakenly delete a context when he's selecting a different type of file, (since he would want new filters). thus, just create a new context where he can do anything - contexts - case-insensitive (when file -> context) - syntax: if current context does not have any, use the one the user has set for this log - syntax: when changed -> refresh everything (even syntax!) - test syntax : "Use it" -> if the context did not have a default syntax(= invalid syntax) -> use it also - at app start - delete empty contexts
- Loading branch information
Showing
8 changed files
with
103 additions
and
59 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.