avendael / emacs-geeknote Goto Github PK
View Code? Open in Web Editor NEWUse Evernote in Emacs through geeknote
Use Evernote in Emacs through geeknote
It maybe not relevant here, but after googling for a long time, I still can't find the right solution.
Emacs24.5 was installed from macport on Mac OS X 10.10, Emacs daemon is started with
/Applications/MacPorts/Emacs.app/Contents/MacOS/Emacs --daemon
then try to edit a note, there is an error says:
emacsclient: can't find socket; have you started the server?
To start the server in Emacs, type "M-x server-start".
for me at least
the current
(defun geeknote-create-old (title)
"Create a new note with the given title.
TITLE the title of the new note to be created."
(interactive "sName: ")
(message (format "geeknote creating note: %s" title))
(let ((note-title (geeknote--parse-title title))
(note-tags (geeknote--parse-tags title))
(note-notebook (geeknote--parse-notebook title)))
(async-shell-command
(format (concat geeknote-command " create --content WRITE --title %s --tags %s"
(when note-notebook " --notebook %s"))
(shell-quote-argument note-title)
(shell-quote-argument (or note-tags ""))
(shell-quote-argument (or note-notebook ""))))))
fails with
python ~/.emacs.d/opt/geeknote/geeknote/geeknote.py create --content WRITE --title emacs\ vs\ vim --tags '' --notebook ideas: exited abnormally with code 1.
removing --tags
seems to work though obviously without the tagging feature
(defun geeknote-create (title)
"Create a new note with the given title.
TITLE the title of the new note to be created."
(interactive "sName: ")
(message (format "geeknote creating note: %s" title))
(let ((note-title (geeknote--parse-title title))
(note-tags (geeknote--parse-tags title))
(note-notebook (geeknote--parse-notebook title)))
(async-shell-command
(format (concat geeknote-command " create --content WRITE --title %s "
(when note-notebook " --notebook %s"))
(shell-quote-argument note-title)
(shell-quote-argument (or note-tags ""))
(shell-quote-argument (or note-notebook ""))))))
macOS Sierra 10.12
geeknote 2.0.11
python 2.7.10
I think it makes more sense to convert the xml flile to org-mode markup and back again. Org supports encoding of all of the XML and all of the features (e.g. checkboxes/tags etc) that are in the source.
Would you consider switching to geeknote fork? The project is actually maintained and bring several improvements. There are just a couple of modifications to implement in the API. I could prepare a PR if you are interested.
First of all, I think this should be implemented in geeknote
to for broader audience. However, would it be possible to walk note tree and edit notes like ranger
command-line file manager?
Essentially it will be very cool to do like this:
l
(lowercase of L) for goto sub itemj
goto item belowk
goto item above. Or go up one level if it is the topmost one already.h
go up one level (parent item)I configured geeknote-command
with:
(setq geeknote-command "/home/steven/repos/.pyenv/versions/2.7/bin/python /home/steven/repos/.pyenv/versions/2.7/bin/geeknote")
..and geeknote-find
returns the command not found error.
Is there a workaround?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.