-
Notifications
You must be signed in to change notification settings - Fork 36
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
Opening a note directly from shell #88
Comments
It's possible, but you must know the key. |
To find the key, you can run sncli, then select the note you want, and type 'O' to show the note raw json. The key is displayed there. |
Awesome, didn't know that one, thanks.. any way I can view in my default editor? |
Yep, you can set the |
Yep, that did it, Thank You 👍🏽 |
Hello. Is there a way to open a note in editor?? |
Le 2022-05-29 07:45, Andrés Martinelli a écrit :
Hello. Is there a way to open a note in editor??
this command
`sncli -k a67e0325eb5b4e7790719fc0b22b99d1`
opens it but in viewer mode. not inside editor..
anyone knows? thanks!
--
Reply to this email directly or view it on GitHub:
#88 (comment)
You are receiving this because you are subscribed to this thread.
Message ID: ***@***.***>
Hi,
do the same and then type "e" to edit the note.
|
Yes. I am aware of that. But I was asking if there is a way to enter directly to edition without the need of pressing 'e'. |
There is an
EDIT: order of arguments is significant - currently it needs the |
Actually I tried that. And it just showed:
|
@andmarti1424 can you paste the entire output, including what you wrote on the command line? |
This was the problem. Thank you! |
Is there a way to open a note based on its title directly from the shell (ie: without opening first opening sncli and then selecting the note from the list)? Based on the docs it seems like you can open/edit a note directly by specifying its key with the -k option, but I don't know how to find or associate a key with a note. For example, I want to edit a simplenote note called "today" via sncli directly from bash, but running
$sncli -k today
returns a long python error message (see below). Thanks!
$ sncli -k today
Traceback (most recent call last):
File "/home/rwbarat/.local/bin/sncli", line 10, in
sys.exit(main())
File "/home/rwbarat/.local/lib/python3.7/site-packages/simplenote_cli/sncli.py", line 1353, in main
sncli(sync, verbose, config).gui(key)
File "/home/rwbarat/.local/lib/python3.7/site-packages/simplenote_cli/sncli.py", line 967, in gui
'log' : self.log
File "/home/rwbarat/.local/lib/python3.7/site-packages/simplenote_cli/view_note.py", line 21, in init
self.note = self.ndb.get_note(self.key) if self.key else None
File "/home/rwbarat/.local/lib/python3.7/site-packages/simplenote_cli/notes_db.py", line 351, in get_note
return self.notes[key]
KeyError: 'today'
The text was updated successfully, but these errors were encountered: