-
Notifications
You must be signed in to change notification settings - Fork 3
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
Adding linefeed in interactive edit not working. #48
Comments
Hi! Thanks for reporting this. I'm seeing this issue in my side too and
will investigate a fix soon.
…On Sat, Nov 28, 2020, 3:21 AM xircon ***@***.***> wrote:
Using micro editor, I set up a phrase:
qk -n 'updg'
Enter the phrase, press enter:
[image: image]
<https://user-images.githubusercontent.com/1316691/100499617-e694ce80-3162-11eb-9fc4-f430909eb0b0.png>
Phrase after expansion:
[image: image]
<https://user-images.githubusercontent.com/1316691/100499748-147a1300-3163-11eb-9d68-f0a625feb4d2.png>
Also qk daemon seems to not work after an interactive edit and I have to
restart:
qk stop && qk start
Then all is good.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#48>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABUR6W3KBN7X64PGYKPG2LSSDFLRANCNFSM4UFWO4BA>
.
|
Thanks. |
I'm reworking the edit screen a bit to address the issue you found with newlines. Regarding the quikey-daemon failure, here's the stacktrace when editing a phrase as you stated. I'll address this as well.
|
The quikey-daemon issue has been a troubleshooting challenge, but using inotify CLI tools, I see the phrase database is invalid for a very short period of time. I'll have to dig into why this is the case next.
Note the extra |
May be a lack of coffee, but I can see 2 extra closing braces? |
Yep, you are right. I'm trying to figure out if that's something I
introduced in quikey or coming from an underlying library.
…On Sun, Nov 29, 2020, 1:58 AM xircon ***@***.***> wrote:
May be a lack of coffee, but I can see 2 extra closing braces?
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#48 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABUR6VTB57LX2FAIUA5BS3SSIELZANCNFSM4UFWO4BA>
.
|
Looks like its due to tinydb not supporting multi-threading/processing. Fortunately, quikey edits do not require high performance so I can introduce a file lock to address this. I'll start work on this soon and have a goal to get a new release out this week. Reference: |
Anything I can do, let me know. |
Quick test, all seems to be working, needs python-filelock adding to the aur package's depends. |
Yep! I'll leave that to @SanskritFritz to sort out in the aur release.
…On Sun, Nov 29, 2020, 2:37 PM xircon ***@***.***> wrote:
Quick test, all seems to be working, needs python-filelock adding to the
aur packages depends.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#48 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABUR6R2GIV4Q5UA226EIYDSSK5LLANCNFSM4UFWO4BA>
.
|
I don't have python-filelock installed on my archlinux, but qk seems to work well here. Why is that dependency needed? Don't get me wrong, I'm willing to add it, just want to clarify this. |
Ah, OK, it's a new dependency, now I see. So it will be included in the next release, however, the -git package will be updated soon. |
It was added as part of some locking needed to address a race condition in
accessing the quikey database. I made sure to check the dependency was
available in Arch repos before adding. Hope I confirmed that correctly!
…On Sun, Nov 29, 2020, 2:43 PM SanskritFritz ***@***.***> wrote:
I don't have python-filelock installed on my archlinux, but qk seems to
work well here. Why is that dependency needed?
Don't get me wrong, I'm willing to add it, just want to clarify this.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#48 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABUR6TJ3NXJSNGTYY4L5I3SSK56NANCNFSM4UFWO4BA>
.
|
Thanks!! :)
…On Sun, Nov 29, 2020, 2:45 PM SanskritFritz ***@***.***> wrote:
Ah, OK, it's a new dependency, now I see. So it will be included in the
next release, however, the -git package will be updated soon.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#48 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABUR6Q6QCDKMHI4P4BWGFDSSK6G3ANCNFSM4UFWO4BA>
.
|
Thank you both! |
OK, AUR packages updated, thanks guys. This stuff is getting better and better. |
Using micro editor, I set up a phrase:
Enter the phrase, press enter:
Phrase after expansion:
Also qk daemon seems to not work after an interactive edit and I have to restart:
Then all is good.
If I manually edit the json and add '\n' it works.
The text was updated successfully, but these errors were encountered: