docs: update README and settings guide for v2 (editing strip, Dataview, file paths); fix package metadata
This commit is contained in:
1 parent
9a1a1dd150
commit
fae8b68647
4 files changed
+23
-17
No files matched your search
@@ -226,7 +226,7 @@ var MenuPluginSettingTab = class extends import_obsidian.PluginSettingTab {
|
||||
display() {
|
||||
const { containerEl } = this;
|
||||
containerEl.empty();
|
||||
new import_obsidian.Setting(containerEl).setName("Default layout").setDesc("Layout used when a menu block has no layout: line.").addDropdown((dropdown) => {
|
||||
new import_obsidian.Setting(containerEl).setName("Default layout").setDesc("Layout used when a menu block has no layout: line, or only modifiers (small, grid).").addDropdown((dropdown) => {
|
||||
for (const layout of LAYOUTS) {
|
||||
dropdown.addOption(layout, layout.charAt(0).toUpperCase() + layout.slice(1));
|
||||
}
|
||||
@@ -238,7 +238,7 @@ var MenuPluginSettingTab = class extends import_obsidian.PluginSettingTab {
|
||||
new import_obsidian.Setting(containerEl).setName("Usage guide").setHeading();
|
||||
const doc = containerEl.createEl("div", { cls: "menu-settings-docs" });
|
||||
doc.createEl("p", {
|
||||
text: "Put one link per line in a `menu` code block. Options go before the links."
|
||||
text: "Put one link per line in a `menu` code block. Options go before the links. To edit a menu in Live Preview, click the thin strip on its left edge."
|
||||
});
|
||||
doc.createEl("h4", { text: "Example" });
|
||||
const pre = doc.createEl("pre");
|
||||
@@ -260,10 +260,11 @@ radius: 99px
|
||||
tr.createEl("td", { text: syntax, cls: "menu-settings-syntax" });
|
||||
tr.createEl("td", { text: description });
|
||||
};
|
||||
addRow("[[Note]]", "Opens an Obsidian note (Ctrl-click or middle-click: new tab)");
|
||||
addRow("[[Note]]", "Opens an Obsidian note (Ctrl-click or middle-click: new tab; Ctrl-hover: preview)");
|
||||
addRow("[[Note|Alias]]", "Obsidian note with custom display text");
|
||||
addRow("[Text](https://...)", "Opens URL in your browser");
|
||||
addRow("[Text](file:///path)", "Opens a local file or folder (desktop only)");
|
||||
addRow("[Text](<file:///path with spaces>)", "File path containing spaces");
|
||||
doc.createEl("h4", { text: "Options" });
|
||||
const propTable = doc.createEl("table", { cls: "menu-settings-table" });
|
||||
const addProp = (prop, values, description) => {
|
||||
@@ -278,7 +279,7 @@ radius: 99px
|
||||
addProp("hover-text / hover-bg / hover-border", "any CSS value", "Hover colors");
|
||||
addProp("size / gap / radius / padding", "any CSS length", "Font size, spacing, corner rounding");
|
||||
addProp("internal-* / external-* / file-*", "any CSS value", "Color or font for one link type");
|
||||
addProp("dataview: / dv:", "Dataview query", "Add links from Dataview (rest of block)");
|
||||
addProp("dataview: / dv:", "Dataview query", "Add links from Dataview; the rest of the block is the query (needs Dataview)");
|
||||
}
|
||||
};
|
||||
// Annotate the CommonJS export names for ESM import in node:
|
||||
|
||||
Reference in new issue
Block a user