Comments (3)
I also use this type of YAML list to do tags, and I think fixing this would be fantastic!
Ideally it would maintain the style used by the user, essentially just replacing the hashtags with nothing
from obsidian-linter.
The rule "Format Tags in YAML" doesn't handle tags in the front matter formatted like
Tags:
- #foo
- #Bar
Applying the linter does nothing. The expected results were
Tags:
- foo
- Bar
My use case for this is that I find this style of lists in YAML to be more legible and easier to edit or remove a tag. I suspect the reason I start with the # is similar to others, we want auto-complete help when assigning tags.
To be more precise, the following case does not work as expected:
---
tags:
- #tag1
- #tag2
---
The rule format-tags-in-yaml
ignores the hashes as the original regex parses only a single string.
from obsidian-linter.
A possible implementation for this is to have options on the desired output format after parsing out the #
. Workflow would be:
- Users type out their tags as suggested:
tags: #tag1 #tag2
- On save it's formatted based on the format output setting chosen by user i.e. bullet points, array
I myself prefer keeping my tags in an array e.g. tags: [ tag1, tag2 ]
so a feature like this would be great.
from obsidian-linter.
Related Issues (20)
- 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
- FR: Enabling personal additions to auto-correction map HOT 3
- Bug: Smart quotes get applied in Markdown image links HOT 5
- Bug: random deletion of characters/words/line breaks throughout the note HOT 17
- Bug: footnote-after-punctuation fails if reference name contains hyphen
- Question: Custom Command: converting multiple single lines to bullet points HOT 1
- FR: empty line around lists HOT 5
- Bug: Tag Regex Matches Punctuation Like `:` Which Causes Other Problems HOT 4
- Bug: Header capitalization rule does not update link text HOT 2
- FR: Support Obsidian-style comment for inline linter toggle HOT 1
- Bug: "Lint the current File" command failed to execute HOT 4
- Bug: "Move Tags to YAML" breaks when tags have a `/` HOT 5
- Bug: Remove space header when option `RemoveSpaceAroundCharacters` is enabled and Katakata is beginning of the line HOT 1
- FR: Matching / Tidying Header Pound Signs
- Bug: capitalize-headings, yaml-title, yaml-title-alias require two lint passes to resolve
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.