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

How to I supply hookmark title information when using the CLI linking #9

Open
DAMisener opened this issue Feb 8, 2024 · 2 comments

Comments

@DAMisener
Copy link

Following example:

Preconditions:

cat temp.tmp
This is just a test

hook list -ov temp.tmp
No bookmarks

hook list -ov https://google.com
No bookmarks

Linking

hook link "[web title](https://google.com\)" "[file title](temp.tmp)"

Linking https://google.com and /Users/dennismisener/work/Nim/temp.tmp...
Linked 1 files to /Users/dennismisener/work/Nim/temp.tmp

Results:

link list -ov temp.tmp

Bookmarks attached to /Users/dennismisener/work/Nim/temp.tmp

Title:
Path:
Address: https://google.com
---------------------

link list -ov https://google.com

Bookmarks attached to https://google.com

Title: temp.tmp
Path: /Users/dennismisener/work/Nim/temp.tmp
Address: hook://file/byJgwypqK?p=d29yay9OaW0=&n=temp%2Etmp
---------------------

The supplied title information seems to be ignored. Am I using an incorrect syntax?
Is there another way to specify the title information?

@ttscoff
Copy link
Owner

ttscoff commented Feb 12, 2024

The hook script doesn't accept a title, it displays the title that Hookmark gives your link. You can't assign the title directly. Might be something to consider for a future version.

@DAMisener
Copy link
Author

DAMisener commented Feb 13, 2024 via email

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