mirror of
https://github.com/esm7/obsidian-map-view.git
synced 2026-07-22 05:40:27 +00:00
Various fixes
This commit is contained in:
parent
bcfdc57846
commit
965637d6fb
8 changed files with 34 additions and 11 deletions
|
|
@ -432,6 +432,7 @@ The query string can contain the following _search operators_:
|
|||
- Anything that resolves into a legal Obsidian link will work, e.g. both a note name ('Cave Hikes') or a path will do, but a partial name will not.
|
||||
- Obsidian heading and block links are supported: if a link in the 'from' file includes a heading or a block link, it will match only front-matter markers or inline markers _within that heading or block_.
|
||||
- The Obsidian Plugin ["Copy Block Link"](https://github.com/mgmeyers/obsidian-copy-block-link) makes this extra useful.
|
||||
- `["property":"value"]` includes notes with the property name `property` set to `value`.
|
||||
- `lines:x-y` includes only inline markers that are defined in the given line range in their note.
|
||||
- For example, `lines:20-30` includes only inline geolocations that are defined in lines 20 to 30 in the file that contains them.
|
||||
|
||||
|
|
@ -834,6 +835,12 @@ And while both plugins are about maps and use Leaflet.js as their visual engine,
|
|||
|
||||
## Changelog
|
||||
|
||||
### 6.0.4
|
||||
|
||||
- Fix to support emojis in tag names (https://github.com/esm7/obsidian-map-view/issues/348).
|
||||
- Fix for plugin removing blank lines in note embeds (https://github.com/esm7/obsidian-map-view/issues/368).
|
||||
- An improvement to some cases that may still cause marker rules to disappear on upgrade (https://github.com/esm7/obsidian-map-view/issues/359).
|
||||
|
||||
### 6.0.3
|
||||
|
||||
- Fix to https://github.com/esm7/obsidian-map-view/issues/359, not allowing anymore non-preset display rules with an empty query.
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"id": "obsidian-map-view",
|
||||
"name": "Map View",
|
||||
"version": "6.0.3",
|
||||
"version": "6.0.4",
|
||||
"minAppVersion": "1.5.6",
|
||||
"description": "An interactive map view.",
|
||||
"isDesktopOnly": false
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "obsidian-map-view",
|
||||
"version": "6.0.3",
|
||||
"version": "6.0.4",
|
||||
"description": "An interactive map view for Obsidian.md",
|
||||
"main": "main.js",
|
||||
"type": "module",
|
||||
|
|
|
|||
|
|
@ -260,6 +260,25 @@
|
|||
class="rule-input"
|
||||
/>
|
||||
</div>
|
||||
<!-- TODO make this a toggle class -->
|
||||
<!-- <div class="rule-input"> -->
|
||||
<!-- {@render fieldName('Fill', 'true or false')} -->
|
||||
<!-- <div -->
|
||||
<!-- class="checkbox-container" -->
|
||||
<!-- onclick={() => { -->
|
||||
<!-- ruleCopy.pathOptions.fill = !ruleCopy.pathOptions.fill; -->
|
||||
<!-- }} -->
|
||||
<!-- > -->
|
||||
<!-- <input -->
|
||||
<!-- type="checkbox" -->
|
||||
<!-- checked={ruleCopy.pathOptions.fill} -->
|
||||
<!-- id="rule-path-fill" -->
|
||||
<!-- /> -->
|
||||
<!-- </div> -->
|
||||
<!-- <label class="rule-path-fill-label" for="rule-path-fill" -->
|
||||
<!-- >Filled</label -->
|
||||
<!-- > -->
|
||||
<!-- </div> -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -354,10 +354,6 @@
|
|||
padding: 5px;
|
||||
}
|
||||
|
||||
:global(.markdown-embed-content p) {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.elevation-graph-container {
|
||||
width: 100%;
|
||||
height: 200px;
|
||||
|
|
|
|||
|
|
@ -401,7 +401,7 @@ export class QuerySuggest extends PopoverSuggest<Suggestion> {
|
|||
cursorOffset: -1,
|
||||
},
|
||||
{
|
||||
text: '[property:value]',
|
||||
text: '["property":"value"]',
|
||||
textToInsert: '[:]',
|
||||
cursorOffset: -2,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,8 +1,9 @@
|
|||
// The pound sign is optional here
|
||||
export const TAG_NAME_WITH_HEADER = /tag:(#?[\p{L}\p{N}_\/\-]*)/gu;
|
||||
export const TAG_NAME_WITH_HEADER =
|
||||
/tag:(#?[\p{L}\p{N}\p{Extended_Pictographic}_\/\-]*)/gu;
|
||||
// Same as above, but also supporting wildcards for query purposes (not used for inline tags)
|
||||
export const TAG_NAME_WITH_HEADER_AND_WILDCARD =
|
||||
/tag:(#?[\p{L}\p{N}_\/\-\*]*)/gu;
|
||||
/tag:(#?[\p{L}\p{N}\p{Extended_Pictographic}_\/\-\*]*)/gu;
|
||||
// Note no '#' sign
|
||||
export const INLINE_TAG_IN_NOTE = /tag:(?<tag>[\p{L}\p{N}_\/\-]+)/gu;
|
||||
export const PATH = "['p{L}p{N}_,&()/-\\.]+?";
|
||||
|
|
|
|||
|
|
@ -336,7 +336,7 @@ export function convertLegacyMarkerIcons(
|
|||
};
|
||||
settings.markerIconRules.push(newRule);
|
||||
}
|
||||
settings.markerIcons = null;
|
||||
delete settings.markerIcons;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
@ -483,7 +483,7 @@ export function convertMarkerIconRulesToDisplayRules(
|
|||
settings: PluginSettings & DepracatedFields,
|
||||
) {
|
||||
let changed = false;
|
||||
if (settings.markerIconRules) {
|
||||
if (settings.markerIconRules && settings.markerIconRules.length > 0) {
|
||||
// Make sure not to add to any defaults
|
||||
settings.displayRules = [];
|
||||
for (const rule of settings.markerIconRules) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue