generated from obsidianmd/obsidian-sample-plugin
-
-
Notifications
You must be signed in to change notification settings - Fork 296
spike: Experiment with chaining links together #3639
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
Draft
claremacrae
wants to merge
69
commits into
main
Choose a base branch
from
discussion-3627
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Conflicts: # tests/Scripting/TasksFile.test.ts
… loaded yet This will make tests of Links easier to write, as we won't have to force the tests to manually pre-load files being linked to.
This makes chaining of asFile().propertyAsLink('some-name') more consistent and less confusing
Co-Authored-By: Ilyas Landikov <93825870+ilandikov@users.noreply.github.com>
LinkResolver is now set up globally, so tests don't need to be resetting its global state.
LinkResolver is now set up globally, so tests don't need to be resetting its global state.
…solver.setup.ts, if needed at all
…nkResolver.setup.ts
…nkResolver.setup.ts
The file name has two spaces in, and the link was missing a closing ]
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is an experiment to aid discussion on:
It's purely so that a build is created, for users to experiment with this implementation and give feedback.
There is no intention to merge this branch to
main
.Feedback
Please put any feedback in:
How to test this
dist-verified
fileThe Changes
This adds:
task.file.propertyAsLink('property-name')
- which returns the property as aLink
or anull
Link.asFile()
which returns aTasksFile
representing the link destination, ornull
For context,
TasksFile
is the type oftask.file
.An example of use, based on 4 test files that I added in PR...