mirror of
https://github.com/dnlbauer/obsidian-dataview-autocompletion.git
synced 2026-09-10 22:25:29 +00:00
Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
26227eac6e | ||
|
|
ba4dab5dc4 | ||
|
|
6b008d452a | ||
|
|
314f99f462 | ||
|
|
064320bc5b | ||
|
|
5f7fdb244a |
@@ -1,8 +1,8 @@
|
||||
# Obsidian Dataview Autocompletion
|
||||
# Dataview Autocompletion
|
||||
|
||||
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.
|
||||
|
||||
<img src="./assets/demo.gif" alt="Demo" width="400" >
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"id": "dataview-autocompletion",
|
||||
"name": "Dataview Autocompletion",
|
||||
"version": "0.9.2",
|
||||
"version": "0.9.4",
|
||||
"minAppVersion": "0.15.0",
|
||||
"description": "Adds autocompletion to Dataview metadata fields",
|
||||
"author": "Daniel Bauer",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "obsidian-dataview-autocompletion",
|
||||
"version": "0.9.2",
|
||||
"version": "0.9.4",
|
||||
"description": "This is a plugin for Obsidian that provides autocompletion for Dataview metadata fields",
|
||||
"main": "main.js",
|
||||
"scripts": {
|
||||
|
||||
@@ -14,7 +14,7 @@ export class SuggestionIndex {
|
||||
}
|
||||
|
||||
public buildNewIndex() {
|
||||
console.log("Begin Rebuilding dataview suggestion index");
|
||||
// console.log("Begin Rebuilding dataview suggestion index");
|
||||
const startTime = performance.now();
|
||||
const dataviewApi = getAPI(this.plugin.app);
|
||||
|
||||
@@ -55,9 +55,9 @@ export class SuggestionIndex {
|
||||
this.suggestionsRefs = newSuggestionsRefs;
|
||||
|
||||
const endTime = performance.now();
|
||||
console.log(
|
||||
`Rebuilt dataview autocomplete index (${this.suggestionsList.length} elements, ${(endTime - startTime).toFixed(2)}ms)`,
|
||||
);
|
||||
// console.log(
|
||||
// `Rebuilt dataview autocomplete index (${this.suggestionsList.length} elements, ${(endTime - startTime).toFixed(2)}ms)`,
|
||||
// );
|
||||
}
|
||||
|
||||
public updateIndex(type: string, file: TFile, oldPath?: string) {
|
||||
|
||||
Reference in New Issue
Block a user