-
Notifications
You must be signed in to change notification settings - Fork 662
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
Proposal: Link Definition and Disambiguation #122
Changes from 1 commit
8541433
d5d3036
973ead6
11c65d7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,8 @@ | |
Let's say we have two documents in the workspace with the same title "Some Title" | ||
|
||
- We would have autocompletion base on title of the document | ||
- Each autocompletion entry could be in format: | ||
**Document title** - *path/to/document.md* | ||
- This generates a link (typically a title, but could also have e.g. `:2` to disambiguate multiple links in the same file) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Personally I would prefer the local links to use style [[foo/bar/my-title]] - would this be configurable? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @jojanaho, to clarify, do you mean you prefer It could be configurable, since it's an arbitrary label. Options could include:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Always, since in my case it would improve readability - e.g [[book-summaries/war-and-peace]] There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. And to be exact, we have the freedom for arbitrary labels only when link ref defs are in use :) |
||
- The label doesn't matter, it could be used as a display label. We'll just auto-generate something sensible. Could even be a user setting. | ||
- They would look like this: | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could autocomplete always be done with a combination of title and file path within the workspace - in a style of "My title - foo/bar/my-title.md"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes! Added this now.