Skip to content
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

feat: ws relative file/header backlink pickers #50

Merged
merged 5 commits into from
Feb 10, 2024

Conversation

benlubas
Copy link
Contributor

@benlubas benlubas commented Feb 8, 2024

closes #49

This is the "backlink picker at home". It's a simple, incomplete, implementation that is "good enough".

screen_cap.mp4

It does:

  • find workspace relative backlinks to the current file or header
  • uses rg regex to find links
  • uses lua patterns to find the current heading (searches up until it hits one)

It does not:

  • handle relative path links
  • use TS to find the current heading
  • find links to footnotes

I, and others want a simple backlink functionality now while we wait for these features to be properly implemented in Neorg. So that's what this is, something to hold us over while we wait for the real thing.

@benlubas
Copy link
Contributor Author

benlubas commented Feb 8, 2024

Oh, still have to add docs. will do that later tonight

@benlubas
Copy link
Contributor Author

benlubas commented Feb 9, 2024

This is now ready to be merged (pending review)

@max397574 max397574 self-requested a review February 10, 2024 10:05
.editorconfig Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Show resolved Hide resolved
README.md Show resolved Hide resolved
@benlubas benlubas requested a review from max397574 February 10, 2024 14:26
@max397574 max397574 merged commit 418f8fd into nvim-neorg:main Feb 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

List Backlinks to the Current File
2 participants