-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot Read Properties of null (reading 'from') #42
Comments
Investigating further, CodeMirror's
The relevant call here is There are 2 options that I can see:
A third option which is not available to us at this time: |
I'm getting something similar.
The problem is in the line that contains if (this.settings.isWYSISWYG) {
let editor = this.app.workspace.activeLeaf.view.sourceMode.cmEditor;
this.settings.isWYSISWYG = (typeof editor.wordAt === 'function');
this.registerDomEvent(document, 'keydown', (event) => this.handleKeyDown(editor, event)); I can't use 'Tab' , I have it enabled . It automatically inserts an indent. Not sure if I have to unmap it and remap it some how in obsidian.vimrc or something else I have to do? My plugin does not show up, I think it's cause of this error. I usually just edit the data.json since I can't see the plugin settings. |
I preferred this option, now in 0.1.0 "word" is sequence of characters except whitespaces and delimiters. |
For some reasons Tab or Space are not working in LivePreview mode. |
About the "Tab and Space" issue, we found a temporary fix in issue #47 |
When I try to use a snippet like so:
<< : «
It fails, and throws the exception:
Uncaught TypeError: Cannot read properties of null (reading 'from')
Coming from this line:
text-snippets-obsidian/main.ts
Line 111 in ed8bd87
Looks like
editor.wordAt
doesn't like the bracket characters?The text was updated successfully, but these errors were encountered: