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 capture the website with my own comments? #33

Closed
fu123456 opened this issue Jun 24, 2020 · 2 comments
Closed

How to capture the website with my own comments? #33

fu123456 opened this issue Jun 24, 2020 · 2 comments

Comments

@fu123456
Copy link

I use this package in my Firefox, but it can not capture my comments. My org template is as follows:

python /home/***/nstall/grasp/server/grasp_server.py --path /home/***/org/bookmark.org  --template  $'** [[%:link][%:description]] %:tags\n%U\n' &

How can I capture the website with my witten comments? Thx.

@karlicoss
Copy link
Owner

Hi, sorry for a late reply!
I think you need to use %:selection or/and %:comment, you can find some examples here:

grasp/server/org_tools.py

Lines 91 to 109 in af24c99

org_templates = [
DEFAULT_TEMPLATE,
"* %? [[%:link][%:description]] \nCaptured On: %U",
"* %:annotation",
"* %U %:description :protocol: \n %:link \n%:initial \n\n",
"* %t captured stuff %:tags \n ",
"\n** Selection\n%:selection\n** Comment\n%:comment\n",
"""* TODO [#A] %:link
** Selection
%:selection
** Comment
%:comment
""",
"""* %T %:link %:description
#+BEGIN_QUOTE
%:selection
#+END_QUOTE
""",
]

@fu123456
Copy link
Author

fu123456 commented Sep 8, 2020

Hi, sorry for a late reply!
I think you need to use %:selection or/and %:comment, you can find some examples here:

grasp/server/org_tools.py

Lines 91 to 109 in af24c99

org_templates = [
DEFAULT_TEMPLATE,
"* %? [[%:link][%:description]] \nCaptured On: %U",
"* %:annotation",
"* %U %:description :protocol: \n %:link \n%:initial \n\n",
"* %t captured stuff %:tags \n ",
"\n** Selection\n%:selection\n** Comment\n%:comment\n",
"""* TODO [#A] %:link
** Selection
%:selection
** Comment
%:comment
""",
"""* %T %:link %:description
#+BEGIN_QUOTE
%:selection
#+END_QUOTE
""",
]

Thanks. Now it does work well. Grasp is one of my most commonly used plugins.

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