Comments (10)
yeah. If you really need help, just feel free to arrange a call with me.
from obsidian-run.
Interesting. Can you give me a code to reproduce. I cannot use your code because of the require statement
from obsidian-run.
I use the Modules
plugin: https://github.com/polyipseity/obsidian-modules -- obsidian://show-plugin?id=modules.
There may be something in the codebase that gives you an indication.
from obsidian-run.
sorry, I cannot do this because because I cannot fix my plugin just to integrate with another plugin. As long as normal async function work, I will treat the feature as "complete".
from obsidian-run.
For user defined scripts, I have already support templater. You can check the readme.
from obsidian-run.
Well, it is not about "fixing" your plugin. It is about complementing as much as possible.
You are already offering the integration with Dataview
-- I have not checked how complete the integration is -- and partially with Templater
. Why partially? See below:
%% run start
```js
return await tp.file.include("[[test.vim]]")
```
%%
Loading...
%% run end %%
I am trying to include a pure text note... as soon as an await
call is necessary, your plugin "hangs". Please, don't get me wrong, I am only trying to show you the "rough" edges.
from obsidian-run.
OK. I think I understand why. Sorry I didn't elaborate clearly in the doc. That is not the problem of my plugin, that is the problem of templater. because templater tp
which is the internal current_functions_object
is undefined unless run once. Therefore you need to set the templater at least one startup template.
see more on: https://forum.obsidian.md/t/templater-api/59117/6?u=yomaru
This issue cannot fixed by me because I have look at this already before I added the templater integration. The initialization of current_functions_object
is private and other plugins has no way to call it.
I will update the doc.
CleanShot.2023-10-05.at.20.45.00.mp4
from obsidian-run.
I updated the doc
from obsidian-run.
One thing I can assure that this plugin is Extremely complete. The reason why it is extremely complete is because how I write the code, I delegate the calculation to dataview and templater itself. If operation fails, it is not because of this plugin, it is because of the dataview and templater. The issues need to be opened in dataview and templater.
Obsidian Run at its core is a javascript running engine. As long as it is javascript is valid, it will be executed valid. There is no magic. And therefore it is robust.
from obsidian-run.
Noted.
I have Templater
installed and active on all my devices, including one startup template, one folder template and two user scripts, which I use daily. One of my user scripts even checks and waits for Templater
to be up and running before proceeding.
So all preconditions are met, but Run
does not allow me to use await
.
I will take some distance and maybe after a few days, I have a light bulb moment.
Keep up the good work!
from obsidian-run.
Related Issues (20)
- Feature Request: Allow folding the "block run" starting tag. HOT 4
- Feature Request: Allow page-level scoping of variables / Allow variables to be used in all "block run" sections on the same page. HOT 3
- Feature Request: Allow variables defined in one "run block" to be used in all subsequent "run blocks" -- page-level scoping HOT 3
- not able to install HOT 1
- Await is only valid in async functions and the top level bodies of modules HOT 8
- BRAT does not recognise and install the update(s) HOT 6
- inline run block HOT 6
- support HTML comment syntax HOT 1
- add donate to plugin 🥲 HOT 1
- [YOM-542] resolve comments HOT 1
- [YOM-579] periodic update of some notes HOT 7
- [YOM-581] async run doesn't replace the text when there is space HOT 1
- [YOM-583] what if we have conditional update?
- [YOM-596] support generation inside callout or blockquote
- directly evulate dataview query HOT 1
- Clarifying Question: Does this support DQL? HOT 6
- Does not support comments in codeblock HOT 2
- Help needed: I dont understand how to run this plugin HOT 3
- Not working on mobile HOT 2
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-run.