Skip to content

Commit

Permalink
update screenshots and readme, remove tree view from package.json for…
Browse files Browse the repository at this point in the history
… now
  • Loading branch information
kortina committed May 16, 2020
1 parent 42e4f4d commit aa1b93e
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 14 deletions.
29 changes: 24 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,37 @@ You can bind this to a keyboard shortcut by adding to your `keybindings.json`:

#### Peek and Go to Definition for Wiki Links

![peek-and-to-to-definition](demo/peek-and-go-to-definition.gif)
![peek-and-go-to-definition](demo/peek-and-go-to-definition.gif)

#### `cmd+shift+f` to Search Workspace for Notes with #tag
#### Create New Note On Missing Go To Definition

![tag-search](demo/tag-search.gif)
![create-note-on-missing-go-to-definition](demo/create-note-on-missing-go-to-definition.gif)

#### New Note Command

![new-note-command](demo/new-note-command.gif)

#### Peek References to Wiki Links

![peek-references-wiki-link](demo/peek-references-wiki-link.png)

#### Peek References to Tag

![peek-references-tag](demo/peek-references-tag.png)

#### Find All References to Wiki Links

![find-all-references-wiki-link](demo/find-all-references-wiki-link.png)

#### Find All References to Tag

![find-all-references-tag](demo/find-all-references-tag.png)

#### `cmd+shift+f` to Search Workspace for Notes with Tag

![tag-search](demo/tag-search.gif)


## dev

Run `npm install` first.
Expand All @@ -83,8 +104,6 @@ Run `npm install` first.

### TODO

- Add command to create file based on name in the wiki-link under the cursor
- Add command to create new note with name + heading
- Provide better support for ignore patterns, eg, don't complete `file.md` if it is within `ignored_dir/`
- Should we support filename without extension, eg, assume `[[file]]` is a reference to `file.md`?
- Should we support links to headings? eg, `file.md#heading-text`?
Expand Down
Binary file added demo/create-note-on-missing-go-to-definition.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demo/find-all-references-tag.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demo/find-all-references-wiki-link.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demo/peek-references-tag.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demo/peek-references-wiki-link.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 0 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,6 @@
"description": "By default, when invoking `editor.action.revealDefinition` on `[[note.md]]` if `note.md` does not exist in workspace, create it. NB: Works only when `vscodeMarkdownNotes.workspaceFilenameConvention` = 'uniqueFilenames'."
}
}
},
"views": {
"explorer": [
{
"id": "vscodeMarkdownNotesReferences",
"name": "Note References"
}
]
}
},
"icon": "images/vscode-markdown-notes.png",
Expand Down
2 changes: 1 addition & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ class MarkdownReferenceProvider implements vscode.ReferenceProvider {
): vscode.ProviderResult<vscode.Location[]> {
// console.debug('MarkdownReferenceProvider.provideReferences');
const contextWord = getContextWord(document, position);
debugContextWord(contextWord);
// debugContextWord(contextWord);
return ReferenceSearch.search(contextWord);
}
}
Expand Down

0 comments on commit aa1b93e

Please sign in to comment.