Skip to content

Commit

Permalink
Merge pull request #6 from hadrielk/sanitize_package
Browse files Browse the repository at this point in the history
Add info to readme about the other directory and uninstalling
  • Loading branch information
hadrielk authored Nov 6, 2016
2 parents f666faf + c0f3e00 commit 7b5e94b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
4 changes: 2 additions & 2 deletions 128t_log_viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,9 @@ def is_checked(self):

def description(self):
if sublime.active_window().active_view().size() > sublime.load_settings("128t_log_viewer.sublime-settings").get('max_size'):
return "Colorcoding may hurt performance, File is large"
return "128T Log Viewer colorizing may hurt performance, File is large"
else:
return "Colorcode this view"
return "128T Log Viewer colorize this view"

modification_running = False

Expand Down
11 changes: 8 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,21 @@ Right now: Download the [zipped-file](https://github.com/hadrielk/Sublime-128T-L

Eventually: Download the plugin via [packageControl](https://sublime.wbond.net/).

To properly work 128T Log Viewer needs an appropriately modified color scheme. On the first run the plugin will try its best to automatically modify your current scheme. :grey_exclamation: the plugin will not actually modify the scheme but create a modified copy in its own directory and apply it.
To properly work 128T Log Viewer needs an appropriately modified color scheme. On the first run the plugin will try its best to automatically modify your current scheme. :grey_exclamation: the plugin will not actually modify the scheme but create a modified copy in a new directory called "128T-Log-Viewer" and apply it - note this directory is not the same as the ony you created if you installed manually using the zip file.

You can use `Tools``Packages``128T Log Viewer`` Tweak Log Viewer on current color scheme` (or <kbd>CTRL</kbd><kbd>SHIFT</kbd><kbd>P</kbd> it) to modify the colors a bit (you can change the lightness and saturation).
Colorcoder also needs a "good" language definition, which it does not activate automatically but leaves you the choice to do so, read below for more.


##Uninstalling

Uninstalling will cause Sublime Text to generate an error about a missing color scheme file. That's because your User settings for Sublime Text have been changed to use the 128T Log Viewer's color scheme instead of you original. So go to `Sublime Text``Preferences``Settings`, and in the User ones remove or comment out the "color_scheme" setting line. Your original color scheme should in that User settings under "original_color_scheme" - you can change the name of this to "color_scheme" and everything should be right as rain.


##Options
You can turn the highlighting off per view via `View``128T Log Viewer this view`.

The 128T Log Viewer also might slow down the editor when highlighting huge files, so it will turn itself off once the file has exceeded the `max_size` (the check happens when you save the file or reactivate the view). You can force it to highlight the file nevertheless via said menu item (which will read `Colorcoding may hurt performance, File is large` now)

Default (faster) highlighting method makes the undo work letterwise, you can change this by setting `use_fast_highlighting_but_undo_typing_letterwise` to false. The 128T Log Viewer will then use alternative engine, which does not interfer with undo, but work somewhat slower on large files. You might want to tune `max_size` lower then.
Default (faster) highlighting method makes the undo work letterwise, you can change this by setting `use_fast_highlighting_but_undo_typing_letterwise` to false. The 128T Log Viewer will then use alternative engine, which does not interfere with undo, but work somewhat slower on large files. You might want to tune `max_size` lower then.

Finally :exclamation: if you use some plugins which change the color scheme based on time, or filename, or modify the schemes you better turn the `auto_apply_on_scheme_change` off, or the plugin conflict may result in an endless loop which will lock the editor. You can always change the settings even when Sublime Text is not running.

0 comments on commit 7b5e94b

Please sign in to comment.