Giter VIP home page Giter VIP logo

vscode-backlinks-panel's Introduction

VS Code Backlinks Panel

View all backlinks (what?) in the current file.

MIT License Visual Studio Marketplace Version GitHub Workflow Status

Note: I no longer use this extension. If you're interested in maintaining it, please open an issue

⚠️ Currently, this extension depends on the wikilink extension by kortina.

Getting Started

  1. Install the extension from the Visual Studio Marketplace.
  2. In VS Code, link to a file with a wikilink. (Eg. Here's a link to [[example.md]])
  3. Open the file you just linked to. In the sidebar, there should be a "backlinks" pane which lists the original file.

FAQ

What do you mean by backlinks?
Documents in your workspace which link to the current file.

I don't see my problem listed here
Feel free to open an issue. I'll try my best to address it.

Development

Running Locally

  1. Install dependencies (npm install)
  2. Open the debug pane in vs code, OR, press ctrl + p and enter ?debug
  3. Select "Run Extension"

Todo

  • Expose settings
    • ignored files
  • Support traditional links (now, only wikilinks are supported)
  • By default, only activate for markdown files (?)

License

© 2020 Binyamin Green and contributors, under the MIT license.

vscode-backlinks-panel's People

Contributors

binyamin avatar dependabot[bot] avatar renovate-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

bangbanglilwild

vscode-backlinks-panel's Issues

Open backlinks in new file

Expected Behavior

Backlinks open in new editor/file

Actual Behavior

Clicking replaces the currently selected file.

Possible Fix

Related to #1

Steps to Reproduce

When clicking a backlink on the panel.

Your Environment

Include as many relevant details about the environment you experienced the bug in.

  • Version used: v0.1.0
  • VS Code version: v1.45.0

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/lint.yml
  • actions/checkout v2
  • actions/setup-node v1
npm
package.json
  • @types/node ^14.14.10
  • @types/vscode ^1.51.0
  • @typescript-eslint/eslint-plugin ^4.9.1
  • @typescript-eslint/parser ^4.9.1
  • eslint ^7.15.0
  • typescript ^4.1.2
  • vscode-test ^1.4.1
  • vscode ^1.45.0

  • Check this box to trigger a request for Renovate to run again on this repository

Issue with Windows path?

Expected Behavior

The backlinks panel stays empty. Instead I get a toast with
ENOENT: no such file or directory, scandir '/c:/Users/foo/bla - boo/notes'

Actual Behavior

No error message

Possible Fix

Maybe Windows path names are note handled properly? Note the leading / in the toast.

Steps to Reproduce

Open a markdown file on a Windows (OneDrive Sync)-folder

Your Environment

Include as many relevant details about the environment you experienced the bug in.

  • Version used: 0.2.0
  • VS Code version: 1.45.1
  • Operating System and version: Windows 10 1909

Panel items should link to line numbers

Detailed Description

Currently, panel items simply open the file which links to the current one. I propose that they link to the particular line which contains the backlink.

Context

Why is this change important to you? How would you use it? How can it benefit other users?
This would make the navigation easier.

Possible Implementation

I think that the panel item command needs to change 👇
https://github.com/b3u/vscode-backlinks-panel/blob/17e2d7e52f3133af09de5a7b2b071fb5a089b7ee/src/backlinks.ts#L17-L23

Your Environment

Include as many details about the environment which you think are relevant.

  • Version used: v0.1.0
  • VS Code version: v1.45.0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.