thedataking / sublimewritingstyle Goto Github PK
View Code? Open in Web Editor NEWImprove your writing style with this Sublime Text package
License: MIT License
Improve your writing style with this Sublime Text package
License: MIT License
Problem: when typing or deleting fast ST3 stops rendering text. This happens on slightly weaker machines. When I switch off the plugin the lag is gone.
Possible reason: SublimeWritingStyle checks document after every character change. A costly operation.
Proposed solution: adding a delay between checks. Linter package allows to add 500ms delay that seems to fix this problem with linter.
This isn't appearing in Package Control – could you provide installation instructions in the README?
Thanks,
Robert
Hi, great work!
There is an issue where on ST3 the markings disappear after scrolling. Typically not all of them. Turning the package on and off helps. ideas?
Got this installed, but not sure how I get it to highlight a file. Should it be auto-enabled? Is there some hotkey or command pallete thing I need to do?
Extra instructions appreciated :)
Sublime 2.0.2, Build 2221
OSX Mavericks
First, thanks for making this package! It has really improved my writing in LaTeX.
It looks like the package is broken for ST2 (which is fine, some error about the keywords sublime.DRAW_NO_FILL + sublime.DRAW_NO_OUTLINE
). But if anyone is still using ST2, you can replace lines 52-78 of your SublimeWritingStyle.py
with this:
def lazy_mark_regions(new_regions, old_regions, style_key, color_scope_name, symbol_name):
if old_regions != new_regions or True:
# print 'adding new regions'
view.erase_regions(style_key)
# name, regions, style, symbol in gutter, draw outlined
view.add_regions(style_key, new_regions, color_scope_name, symbol_name)
return new_regions
# weasel words
new_regions = find_words(settings.pattern)
weasel_word_regions = lazy_mark_regions(
new_regions,
weasel_word_regions,
'SublimeWritingStyle',
settings.color_scope_name,
'dot')
# passive words
new_regions = find_words(settings.passive_voice_pattern)
passive_voice_regions = lazy_mark_regions(
new_regions,
passive_voice_regions,
'SublimeWritingStyle-Passive',
'string',
'circle')
This is clearly not a sustainable fix, but it worked for me.
Any interest in letting the community find and install this package using Package Control?
I think it's just necessary to submit a pull request to package_control_channel per the developer instructions.
Hi, it would be useful to sometimes disable this mode. I suggest adding on/off toggle for Shift-Command-P menu.
Thanks for developing this - it is great!
Repeated words (the the) are most often unintentional. Highlight these to help spot the error.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.