From a275f6f685dbf56bd70396b5007cab76f93a92d3 Mon Sep 17 00:00:00 2001 From: Ross Keenan Date: Wed, 21 Jul 2021 17:18:00 +0200 Subject: [PATCH] feat(CreateIndex): :lipstick: Add a notice when index is copied to clipboard --- src/MatrixView.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/MatrixView.ts b/src/MatrixView.ts index 5dbc43e1..5a7dc8f9 100644 --- a/src/MatrixView.ts +++ b/src/MatrixView.ts @@ -1,6 +1,6 @@ import type { Graph } from "graphlib"; import { cloneDeep } from "lodash"; -import { ItemView, TFile, WorkspaceLeaf } from "obsidian"; +import { ItemView, Notice, TFile, WorkspaceLeaf } from "obsidian"; import { closeImpliedLinks, copyToClipboard, debug } from "src/sharedFunctions"; import { DATAVIEW_INDEX_DELAY, @@ -194,6 +194,7 @@ export default class MatrixView extends ItemView { const index = this.createIndex(allPaths, currFile.basename, settings); debug(settings, { index }); copyToClipboard(index); + new Notice("Index copied to clipboard"); }); const [parentFieldName, siblingFieldName, childFieldName] = [