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

Autokey substitution different for Qownnotes #339

Closed
ghost opened this Issue Sep 28, 2016 · 8 comments

Comments

Projects
None yet
1 participant
@ghost

ghost commented Sep 28, 2016

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 pbek added the question label Sep 28, 2016

@pbek

This comment has been minimized.

Owner

pbek commented Sep 28, 2016

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

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

@ghost

This comment has been minimized.

ghost commented Sep 28, 2016

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

This comment has been minimized.

Owner

pbek commented Sep 28, 2016

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

This comment has been minimized.

ghost commented Sep 28, 2016

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

This comment has been minimized.

Owner

pbek commented Sep 28, 2016

@pbek

This comment has been minimized.

Owner

pbek commented Sep 28, 2016

And this is just for you too:

16.09.17

  • there a now is a new scripting method script.noteTextEditWrite(text)
    to write text to the note text edit
  • there a now is a new scripting method script.noteTextEditSelectedText()
    to read the selected text from the note text edit
@pbek

This comment has been minimized.

Owner

pbek commented Sep 28, 2016

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

This comment has been minimized.

Owner

pbek commented Sep 29, 2016

I will close this issue until there is more information.

@pbek pbek closed this Sep 29, 2016

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