Comments (1)
I found the reason, if key not text character, it will not be trigger.
In run_snippets.ts line 45
if (snippet.options.automatic || snippet.type === "visual") {
// If the key pressed wasn't a text character, continue
if (!(key.length === 1)) continue;
effectiveLine += key;
}
For those who need it, you can comment out this section in the source code to enable triggering actions with keys like Enter and Backspace, fulfilling specific requirements. Note that in the trigger, 'Enter' should be used as the trigger value instead of '\n', as this could lead to many unexpected behaviors,like cursor position. This method should only be used as a hack.
I suspect the reason for the misplaced position lies within the computeTabstops method, but I'm struggling to comprehend this code snippet.
A feasible improvement could be to introduce a new mode specifically for handling non-text characters' input to avoid conflicts. However, since this would be a feature request, I'll go ahead and close this issue.
If there are any plugins or methods for overriding input, please kindly let me know. I would be extremely grateful.
from obsidian-latex-suite.
Related Issues (20)
- Popup Preview is bugged for large align-like enviroments
- [BUG] After version 1.7.3, it is not possible to input the ‘&’ function by pressing tab within $$. HOT 1
- [BUG] context object support in js HOT 2
- [FEATURE] support code latex HOT 1
- [BUG] colorPairedBrackets does not work inside codeblock
- [BUG] Tabout sometimes goes backward to random part of previously written math HOT 2
- [BUG] Can not convert 「「 symbols
- [FEATURE] Optimize the Loading from file/folder function
- [BUG] Math popup preview doesn't work in Canvas
- [BUG] The default setting cannot treat "\bar" and similar commands properly
- [DOCS] Vertical and diagonal ellipses in matrices HOT 4
- [FEATURE] Replace enable/disable hotkeys with toggle hotkey
- [BUG] replace rule not work as expected HOT 2
- [FEATURE] Add option for disabling spacing with auto-enlarged brackets
- [BUG]: Latex Suite makes Obsidian slow and laggy HOT 3
- [BUG] Proposed Fix To Errors When Using Codeblock Math Mode
- [BUG] the commands \oiiint and \oiint (at least these two) cannot be displayed correctly
- [BUG] LaTeX Suite will significantly affect Obsidian’s performance. HOT 1
- [FEATURE]
- [FEATURE] Better-looking LaTeX source view
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from obsidian-latex-suite.