Skip to content

Remove obsolete actions #150

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 5 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,21 +41,6 @@ files of the current workspace.

Typing `[^` triggers autocompletion for footnotes.

## rename file ⇒ update links to this file

When you rename a file, all links to this file in other Markdown files would be
broken. Markdown IDE fixes this by changing the target of these links to the new
filename.

![demo of the "rename file" feature](https://raw.githubusercontent.com/kevgo/vscode-markdown-ide/main/documentation/rename-file.gif)

## delete file ⇒ remove links to this file

When you delete a file, all links to this file in other Markdown files would be
broken. Markdown IDE fixes this by removing these links.

![demo of the "delete file" feature](https://raw.githubusercontent.com/kevgo/vscode-markdown-ide/main/documentation/delete-file.gif)

## rename Markdown file title ⇒ update links containing this title

Run the "Markdown IDE: Rename document title" command to change the primary
Expand All @@ -64,6 +49,11 @@ document.

![demo of the "rename document title" feature](https://raw.githubusercontent.com/kevgo/vscode-markdown-ide/main/documentation/rename-document-title.gif)

## update links after file was renamed or deleted

This is now
[available](vscode://settings/markdown.updateLinksOnFileMove.enabled) in VSCode.

## "go to definition" for links

Markdown IDE supports the
Expand Down
Binary file removed documentation/delete-file.gif
Binary file not shown.
Binary file removed documentation/rename-file.gif
Binary file not shown.
8 changes: 0 additions & 8 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import { createCompletionProvider } from "./autocomplete/provider"
import { extractNoteBody, extractNoteTitle, linkToNote, TikibaseProvider } from "./code-action/tikibase-provider"
import * as configuration from "./configuration"
import * as fileSaved from "./file-saved/file-saved"
import { filesDeleted } from "./files-deleted"
import { filesRenamed } from "./files-renamed"
import { MarkdownDefinitionProvider } from "./follow-link/follow-bidi-link"
import { renameTitle } from "./rename-title/rename-title"
import * as tikibase from "./tikibase"
Expand All @@ -25,12 +23,6 @@ export async function activate(context: vscode.ExtensionContext): Promise<void>
// autocomplete headings by typing `#`
context.subscriptions.push(vscode.languages.registerCompletionItemProvider("markdown", completionProvider, "#"))

// file renamed --> update links to this file
vscode.workspace.onDidRenameFiles(filesRenamed)

// file deleted --> remove links to this file
vscode.workspace.onDidDeleteFiles(filesDeleted)

// rename document title --> update links with the old document title
context.subscriptions.push(vscode.commands.registerCommand("markdownIDE.renameDocumentTitle", renameTitle))

Expand Down
47 changes: 0 additions & 47 deletions src/files-deleted.ts

This file was deleted.

46 changes: 0 additions & 46 deletions src/files-renamed.ts

This file was deleted.