Comments (5)
I have gone ahead and merged what I believe should prevent the scenario you saw with the invalid running of custom commands. It should be in master now and go out in the next release. Please let us know if either has a problem.
from obsidian-linter.
Hey @sisi-sh , thanks for mentioning this. It looks like you have a blank custom command which is causing this behavior.
When custom commands exists, there is a need to have a file open in order to run the custom commands. Thus on active file change, which fires after the the active file has changed, I have to open the last opened file in the sidebar to run custom commands.
It seems this is not the first time that users have accidentally created or left a blank custom command in their config as their only custom command which causes problems, so I am guessing I need to have a boolean setup to determine if the custom commands present include any valid custom commands and use that to determine what to do with custom commands since the length is not viable.
from obsidian-linter.
Oh awesome that did fix it. Thanks!
from obsidian-linter.
That's good. I will see about handling all blank custom commands.
But using custom commands will create that experience with lint on file change since the previous file has to be the active file in order for the custom commands to run properly.
from obsidian-linter.
I believe I have a fix for blank custom commands running in the sidebar. However I would like to make it clear that custom commands running in the sidebar is expected when custom commands are present and you have lint on file change enabled.
from obsidian-linter.
Related Issues (20)
- Bug: Created date gets updated to a different timezone HOT 19
- Question: How do I increase the number of new lines to two before a heading? HOT 7
- Bug: YAML Key Sort option removes multi-line content after literal operator `|` HOT 4
- Bug: tildes in URLs cause the URL to be broken HOT 2
- Bug: "Preserve existing aliases section style" should check Linter's array section style setting to avoid >1 lint HOT 6
- Bug: Indentations for math block removed from callouts or block quotes HOT 5
- Bug: auto “created” and “modified” date time in custom format. HOT 3
- FR: Lint selected files via the Files tab (similar to "Lint folder")
- Question: File Specific Rule Disabling in YAML Frontmatter - Hiding/Editing/Commenting Out rules HOT 4
- Bug: Linter deletes line beginnings and modifies front matter content in certain documents in edit mode HOT 6
- FR: Provide a button to ignore a custom regex replacement when linted.
- Bug: Lint on save doesn't lint on file write on mobile HOT 3
- Bug: numbered list markers all become "1." HOT 3
- Bug: preview mode lint of daily note funnnnnky results HOT 4
- Bug: Linter removes the # from the Share Note share_link URL HOT 1
- Bug: Unable to parse url correctly HOT 2
- Bug: i can't insert yaml by using linger HOT 5
- FR: improve YAML key sort to "at Start" and "at End" order
- Button to exclude file/folder from Linter HOT 2
- Question: Copy `复生吸芽 mAP\@.5` but the pasted text is `复生吸芽 mAP\@`. how to fix it? HOT 3
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-linter.