pbek / QOwnNotes

QOwnNotes is a plain-text file notepad and todo-list manager with Markdown support and Nextcloud / ownCloud integration.
https://www.qownnotes.org/
GNU General Public License v2.0
4.69k stars 414 forks source link

Autokey substitution different for Qownnotes #339

Closed ghost closed 8 years ago

ghost commented 8 years ago

I use Autokey.py3 in arch. It fills many needs and works great across the system. I do however notice weirdness with Qownnotes. When using this script

from datetime import datetime
output = "{:%H:%M}".format(datetime.now())
keyboard.send_keys(output)

Qownnotes will repeatedly place a semicolon where a colon is intended. the time is substituted to something like 10;11 Where the rest of the system will show 10:11

Would anyone have any insight on this. Every other text editor vim gvim atom sublime kedit kate gedit etc. replace with the ' : '

pbek commented 8 years ago

Qownnotes will repeatedly place a semicolon where a colon is intended.

Can you please explain what exactly you are talking about? :)

ghost commented 8 years ago

Autokey is a abbreviation expansion prog for linux like textexpander. when i type ttime it replaces the text with the current time of day. this works correctly through the rest of the system.. it does work correctly in qon as well but in the editor it puts a ; for the : repeatably I have just been going back and replacing the ; with : but that defeats the purpose for the productivity increase that autokey is intended to provide.
The script in the prev post is python by the way. I have another subst that reacts the same way with : and ; it's not a blocker or anything.. but I'm stumped with trying to figure out why it's happening. and Only happening in QON.

pbek commented 8 years ago

it replaces the text with the current time of day

...like Ctrl + T does in QOwnNotes? plus I guess you could also do that with the QOwnNotes scripting engine...

with : and ;

that doesn't ring a bell for me, I've no idea what that might happen

ghost commented 8 years ago

Well I learned a new key shortcut.. Nice. Never looked that one up.. ahh yeah it does full date and time. I guess I could script up just the time and assign it to the same key.. that key doesn't work throughout the rest of the system though.. Nice thought.

pbek commented 8 years ago

http://www.qownnotes.org/shortcuts/QOwnNotes is your friend. ;)

pbek commented 8 years ago

And this is just for you too:

16.09.17

pbek commented 8 years ago

There now is a new release, could you please test it and report if the new features work for you (if you are using the new scripting methods)?

pbek commented 8 years ago

I will close this issue until there is more information.