Sublime Text plugin for handy work with SdlLogs.
This plugin requires at least Python version 3.0. Also this plugin requires at least Sublime Text 3 v.3176 or higher for best performance and correct syntax
-
Install YAML:
sudo apt-get install python-yaml
For next steps you should open sublime
-
Install the Package Control package:
- press
"ctrl+shift+p"
- enter in the prompt
"Install Package Control"
and pressenter
- press
-
Install the PackageDev package:
- press
"ctrl+shift+p"
to enter"Package Control: Install Package"
and then pressenter
- enter in prompt
"PackageDev"
and also pressenter
- press
- Clone this repository. If you have downloaded project as like archive, you have to unpacked it.
- Copy "SdlLogs" folder to Sublime Packages folder. (Generally at /home/USER/.config/sublime-text-3/Packages)
- Change syntax in Sublime to SdlLogs. (View -> Syntax ->SdlLogs)
Open Sublime in top panel choose preferences->Package->Settings->SdlLogs:
- Item "Color Scheme" contain configuration for text color.
- Item "Setting":
"color_scheme"
path to color configuration file."syntax"
path to syntax configuration file."extensions"
contain file extensions with which the plugin works."source_path"
path to your source code directory (need for work recursive search)"check_keys_override"
responsible flag for turn on/off 'Key bindings override' function.
- Item "Key Bindings" contains all keybindings configuration.
Move mouse cursor to line you interested in, which contains path of source file and press "F12"
(by default). Will be opened new separate tab with source code and mouse cursor will be moved to line in code which has generated log.
After each starting sublime, plugin check key bindings override with other plugin, default and user key bindings.
If such exist will show message with problem key bindings and open key binding settings. You can turn off this function change check_keys_override
tag value in setting file to false.
Shortcut for show/hide by columns:
"alt+1"
- date."alt+2"
- thread address."alt+3"
- extra path."alt+4"
- component.
This command highlight functions which doesn't have exit in current .log fileHow to:
- Press
"alt+6"
if used default plugin keymap (or key linked with 'function_call')
This command creates file with call tree for selected function. How to use:
- Select function name
- Press
"alt+7"
if you use default plugin keymap (or key linked with 'function_tree')
This event automatically adds separator before every ignition cycle.
This command sorts with clipping file by selected text.
How to use:
- Select text
- Press
"alt+5"
if you use default plugin keymap (or key linked with 'filter_by_value')