artisticat1 / nl-syntax-highlighting Goto Github PK
View Code? Open in Web Editor NEWHighlight adjectives, nouns, adverbs, verbs, and conjunctions in Obsidian.md
License: MIT License
Highlight adjectives, nouns, adverbs, verbs, and conjunctions in Obsidian.md
License: MIT License
It would be great to be able to toggle this globally as it isn't always feasible to add a frontmatter field to turn this on.
By default, it picks the iA colours for this feature. Realistically it should probably use the obsidian --color-*
colour definitions which will ensure it stays more in keeping with the user's theme.
Love the plugin by the way!
I am a German guy and I write nearly all of my notes in German. I think it would helpful for a lot of people to be able to switch to the most common languages (using different language models for POS tagging in the background)
Right now, the Natural Language Syntax Highlighting is applied to the yaml frontmatter and code blocks as well, even though those are two areas where users most likely do not want to have NL Highlighting.
edit: also, tags also get highlighted.
As a user i would like to only enable syntax highlighting on files of my choosing.
I only want my fiction to be highlighted and not my bullet point style note taking notes.
I propose a setting called:
Metadata Only Per File Activation No [ [|||||]-----] Yes
(NL-SYNTAX-HL: "all")
Only files with the correct metadata field will be highlighted (user opt-in)
(i'm willing to work on this)
while not part of the original implementation by iA Writer, I think it makes a lot of sense to have Pronouns and articles also added as categories
for some reasons, I do not get any highlighting at all. I looked in the console and saw this error:
app.js:1 TypeError: Cannot read properties of undefined (reading 'wordsToOverrideDict')
at getDecosOnLine (plugin:nl-syntax-highlighting:16511:53)
at getAllDecosByLine (plugin:nl-syntax-highlighting:16481:21)
at new import_view.ViewPlugin.fromClass.decorations (plugin:nl-syntax-highlighting:16536:30)
at e.create (app.js:1:350672)
at e.update (app.js:1:351102)
at e.ensureHandlers (app.js:1:378274)
at e.updatePlugins (app.js:1:443716)
at e.update (app.js:1:441962)
at e._dispatch (app.js:1:438758)
at e.dispatch (app.js:1:440536)
I tried using the plugin with the setting "Words to override" empty and filled with the example entries, in both cases I get the same error above.
I think it'd be useful to have the option to disable the plugin for the sentence or paragraph you're currently writing.
I find it a little distracting when the word you're currently typing out changes color multiple times, as the plugin determines the word type.
Thanks :)
I would love a simple shortcut to turn on or off my default settings for the plugin completely. As a user, I want to see the highlights when editing, but not when composing.
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.