Skip to content

Commit

Permalink
feat(CreateIndex): 💄 Add a notice when index is copied to clipboard
Browse files Browse the repository at this point in the history
  • Loading branch information
SkepticMystic committed Jul 21, 2021
1 parent 16b53c2 commit a275f6f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/MatrixView.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand Down Expand Up @@ -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] = [
Expand Down

0 comments on commit a275f6f

Please sign in to comment.