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

memacs-chrome --output-format? #87

Open
DynamicMetaFlow opened this issue Apr 1, 2019 · 2 comments
Open

memacs-chrome --output-format? #87

DynamicMetaFlow opened this issue Apr 1, 2019 · 2 comments

Comments

@DynamicMetaFlow
Copy link

DynamicMetaFlow commented Apr 1, 2019

Greetings,

Thank you for developing memacs and everyone who has contributed to the project. I've been trying to setup memacs for my knowledge system and running into a stumbling block.

When I run the command

python bin/memacs_chrome.py -f "/home/user/.config/google-chrome/Default/History" --output-format '{title}' >~/org/memacs/chromehist.org_archive

An entry in chromehist.org_archive file looks like this

 ** <2019-01-01 Tue 10:37> 
    :PROPERTIES:
   :URL:         https://www.emacswiki.org/
   :VISIT_COUNT: 1
   :ID:          2cea0d0cf79ed67415352fe702df96742b0b446a
   :END:

How can I get the memacs-chrome module to output the headings including the title of the url visited as shown in the example?

* Memacs for chrome url history           :Memacs:chrome:
** <2018-10-03 Wed 10:15:51> [[https://github.com/balaramadurai][Balaramadurai (Dr. Bala Ramadurai)]]
  :PROPERTIES:
  :URL:         https://github.com/balaramadurai
  :VISIT_COUNT: 1
  :ID:          72cdb9f8afd0bb8a815723c47a336f1f300a9228
  :END:

Thank you for your time and support.

@novoid
Copy link
Owner

novoid commented Apr 4, 2019

Hi @DynamicMetaFlow,
The modification has to be done in memacs/chrome.py in the function handle_url().
You have to look at the content of params[] and change output accordingly.
Since I'm not using Chrome or this Memacs module: are you feeling comfortable doing the changes yourself and providing a pull request?

@DynamicMetaFlow
Copy link
Author

Hi @DynamicMetaFlow,
The modification has to be done in memacs/chrome.py in the function handle_url().
You have to look at the content of params[] and change output accordingly.
Since I'm not using Chrome or this Memacs module: are you feeling comfortable doing the changes yourself and providing a pull request?

Hi! Thank you for your response. Thanks to your comment I was able to get it up and running. I will clean things up and do a pull request. Thank you once again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants