mirror of
https://github.com/dnlbauer/obsidian-dataview-autocompletion.git
synced 2026-09-11 06:35:29 +00:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
314f99f462 | ||
|
|
064320bc5b | ||
|
|
5f7fdb244a |
@@ -1,8 +1,8 @@
|
|||||||
# Obsidian Dataview Autocompletion
|
# Dataview Autocompletion
|
||||||
|
|
||||||
This is a plugin for Obsidian (https://obsidian.md).
|
This is a plugin for Obsidian (https://obsidian.md).
|
||||||
|
|
||||||
Obsidian Dataview Autocomplete enhances the functionality of the popular [Dataview plugin](https://github.com/blacksmithgu/obsidian-dataview)
|
Dataview Autocomplete enhances the functionality of the popular [Dataview plugin](https://github.com/blacksmithgu/obsidian-dataview)
|
||||||
by providing autocomplete suggestions for metadata fields in the editor. This makes it easy to reuse existing fields and reduces typing errors.
|
by providing autocomplete suggestions for metadata fields in the editor. This makes it easy to reuse existing fields and reduces typing errors.
|
||||||
|
|
||||||
<img src="./assets/demo.gif" alt="Demo" width="400" >
|
<img src="./assets/demo.gif" alt="Demo" width="400" >
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"id": "dataview-autocompletion",
|
"id": "dataview-autocompletion",
|
||||||
"name": "Dataview Autocompletion",
|
"name": "Dataview Autocompletion",
|
||||||
"version": "0.9.2",
|
"version": "0.9.3",
|
||||||
"minAppVersion": "0.15.0",
|
"minAppVersion": "0.15.0",
|
||||||
"description": "Adds autocompletion to Dataview metadata fields",
|
"description": "Adds autocompletion to Dataview metadata fields",
|
||||||
"author": "Daniel Bauer",
|
"author": "Daniel Bauer",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "obsidian-dataview-autocompletion",
|
"name": "obsidian-dataview-autocompletion",
|
||||||
"version": "0.9.2",
|
"version": "0.9.3",
|
||||||
"description": "This is a plugin for Obsidian that provides autocompletion for Dataview metadata fields",
|
"description": "This is a plugin for Obsidian that provides autocompletion for Dataview metadata fields",
|
||||||
"main": "main.js",
|
"main": "main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ export class SuggestionIndex {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public buildNewIndex() {
|
public buildNewIndex() {
|
||||||
console.log("Begin Rebuilding dataview suggestion index");
|
// console.log("Begin Rebuilding dataview suggestion index");
|
||||||
const startTime = performance.now();
|
const startTime = performance.now();
|
||||||
const dataviewApi = getAPI(this.plugin.app);
|
const dataviewApi = getAPI(this.plugin.app);
|
||||||
|
|
||||||
@@ -55,9 +55,7 @@ export class SuggestionIndex {
|
|||||||
this.suggestionsRefs = newSuggestionsRefs;
|
this.suggestionsRefs = newSuggestionsRefs;
|
||||||
|
|
||||||
const endTime = performance.now();
|
const endTime = performance.now();
|
||||||
console.log(
|
console.log(`Rebuilt dataview autocomplete index (${this.suggestionsList.length} elements, ${(endTime - startTime).toFixed(2)}ms)`);
|
||||||
`Rebuilt dataview autocomplete index (${this.suggestionsList.length} elements, ${(endTime - startTime).toFixed(2)}ms)`,
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public updateIndex(type: string, file: TFile, oldPath?: string) {
|
public updateIndex(type: string, file: TFile, oldPath?: string) {
|
||||||
|
|||||||
Reference in New Issue
Block a user