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

line in file command seems to not work? #39

Closed
zeltak opened this issue Jan 3, 2022 · 5 comments
Closed

line in file command seems to not work? #39

zeltak opened this issue Jan 3, 2022 · 5 comments

Comments

@zeltak
Copy link

zeltak commented Jan 3, 2022

Hi again

This is similar to my previous issues where i may be doing something wrong but i cant see any examples :)

to my understanding the line in file command should open the note with the cursor on the line #? is that correct?

if so i have this example

obsidian://advanced-uri?vault=Food&filepath=CQ/test&viewmode=source&data=XXX%0D%0A333&line=2

which creates the test file but never moves the cursor to line #2

any tips?

thx

Z

@Vinzent03
Copy link
Owner

Vinzent03 commented Jan 3, 2022

What does the created file look like? Is the 333 in a new line? With a different encoding I can reproduce the issue.

XXX%250A333 as data

Without the data parameter everything works.

@zeltak
Copy link
Author

zeltak commented Jan 3, 2022

thx again!

the above was an example i just created to see if i can get it to work and get the cursor to show on the 2nd line (hence the line=2) in the command. this hasent worked with this example or any other examples where i parse encoded text in the data= command.

what im trying to do is use advance uri with siri shortcuts to create a new note and have the cursor positioned in the YAML frontmatter tag section ie:

---
tags: 
- CURSOR GOES HERE

image

is that possible at all?

thx so much

Z

@Vinzent03
Copy link
Owner

Yeah it should be possible. Will have to fix it in the next days.

@Vinzent03
Copy link
Owner

Should be fixed now. But by the way, it was only listed under Navigation and not under Writing so the documentation didn't say it would work for writing too. (Although it should support it)

@zeltak
Copy link
Author

zeltak commented Jan 5, 2022

perfect thx so much!!!

Z

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

No branches or pull requests

2 participants