Skip to content
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

built_in_variables don't work at text-expand in android 13 #67

Open
hinhul opened this issue Jun 28, 2023 · 10 comments
Open

built_in_variables don't work at text-expand in android 13 #67

hinhul opened this issue Jun 28, 2023 · 10 comments

Comments

@hinhul
Copy link

hinhul commented Jun 28, 2023

Hello,

on my former phone with Android 11 the feature for textexpanding worked phanstically with the built-in-variables (e.g. @clipboard and @today). Of course I needed ot set in the file ~neutrinote_settings_data the variable com.appmindlab.nano.pref_eval_built_in_variables to the value true (as described here ).
And now the issue comes. Since I moved to a phone with Android 13 the textexpanding is no more working for the built-in-variables I use (e.g. @clipboard and @today), though I followed the precise steps as described in here and restarted the neutrinote-app and phone itself as well.
The other textexpanding is still working. Only for the built-in-variables the textexpanding is not working.

I really loved the built-in-variables. It is a great feature. I would really like to use them on my android 13 as well :)

@appml
Copy link
Owner

appml commented Jun 28, 2023

Hi,

The problem is not reproducible in my tests. Please share the shortcut that fails to work here.

Thx.

@hinhul
Copy link
Author

hinhul commented Jun 29, 2023

Hello,

in the file ~neutrinote_shortcuts.txt I've these two lines for shortcuts:
put|from Clipboard: "@clipboard"
putt| on @today written: "@clipboard"

I just want to point out again, these both shortcuts have been working on my former Android11 phone. Should these two lines normally work on Android13 as well?

BTW (off-topic): I didn't find a way how to include linebreaks/newline in shortcuts. Is there a possibility?

@appml
Copy link
Owner

appml commented Jun 29, 2023

Hello,

in the file ~neutrinote_shortcuts.txt I've these two lines for shortcuts: put|from Clipboard: "@clipboard" putt| on @today written: "@clipboard"

I just want to point out again, these both shortcuts have been working on my former Android11 phone. Should these two lines normally work on Android13 as well?

BTW (off-topic): I didn't find a way how to include linebreaks/newline in shortcuts. Is there a possibility?

My test with the shortcuts on A13:

Screenshot_20230629-101742

For line breaks in shortcuts, inject <nano:br>

@hinhul
Copy link
Author

hinhul commented Jun 29, 2023

This looks great. This is how it looked for me on Android 11.

Maybe it is an issue with LineageOS? Is there a log-file where I could extract some more information about the last actions from neutrinote?

Continuation of the "Off-Topic" linebreak:
In favor to add linebreaks at the end of both shortcuts from above I would change the lines in ~neutrinote_shortcuts.txt to the following

put|from Clipboard: "@clipboard"<nano:br>
putt| on @today written: "@clipboard"<nano:br>

--> But this doesn't change the output in any way :( - The same behaviour after restarting the app and after restarting the phone

@appml
Copy link
Owner

appml commented Jul 1, 2023

This looks great. This is how it looked for me on Android 11.

Maybe it is an issue with LineageOS? Is there a log-file where I could extract some more information about the last actions from neutrinote?

Continuation of the "Off-Topic" linebreak: In favor to add linebreaks at the end of both shortcuts from above I would change the lines in ~neutrinote_shortcuts.txt to the following

put|from Clipboard: "@clipboard"<nano:br>
putt| on @today written: "@clipboard"<nano:br>

--> But this doesn't change the output in any way :( - The same behaviour after restarting the app and after restarting the phone

End of line newlines should work in the next build (v4.4.1b)

@hinhul
Copy link
Author

hinhul commented Jul 4, 2023

Could you please tell me what specific Android-API is used to make built_in_variables normally working in neutrinote?
Maybe I should raise a ticket for lineageos.org/

End of line newlines should work in the next build (v4.4.1b)
I'm looking forward for it :)

@hinhul
Copy link
Author

hinhul commented Jul 4, 2023

I must correct the suspect it could be caused by lineageos..
I've tried it also on another regular phone with google with normal android 13 and have downloaded neutrinote from the plays-store.
Same behaviour as described above.

Probably I'm just missing something.
I'll write down the exact file-names and the exact lines written in this files:
First file:
~neutrinote_settings_data.txt
has this line in it:
com.appmindlab.nano.pref_eval_built_in_variables|true

Second file:
~neutrinote_shortcuts.txt
has this line in it:
put|from Clipboard: "@clipboard"

Are there more files to be adjusted? Or are there more lines I'm missing currently to make it work properly?

@appml
Copy link
Owner

appml commented Jul 4, 2023

Could you please tell me what specific Android-API is used to make built_in_variables normally working in neutrinote? Maybe I should raise a ticket for lineageos.org/

End of line newlines should work in the next build (v4.4.1b)
I'm looking forward for it :)

After setting built_in_variables, did you do "Restore App Data" for the setting to take effect?

@hinhul
Copy link
Author

hinhul commented Jul 4, 2023

Could you please tell me what specific Android-API is used to make built_in_variables normally working in neutrinote? Maybe I should raise a ticket for lineageos.org/

End of line newlines should work in the next build (v4.4.1b)
I'm looking forward for it :)

After setting built_in_variables, did you do "Restore App Data" for the setting to take effect?

Oh my god. Is this true?!
Thank you so much. This was it :D
Now the built_in_variables are working properly :)

Maybe it would be a solution to put the procedure of "Restore App Data" at every App-Restart? Would it make sense?
Or maybe for "only" refreshing refreshing the both files:
~neutrinote_settings_data.txt and
~neutrinote_shortcuts.txt

PS.: Though I've got the toast-message: "Please check your backup-settings." it has worked out.
PPS.: What should be done at the message "Please check your backup-settings."? When I go to settings I cannot change the "Local Repository Path". When I push at "Local Repository Path" I only get shown the currently configured folder, where the notes are stored.
I really don't now what to do when I get "Please check your backup-settings.". Where should this settings be changed?
Should a new ticket be opened for this? Because the initial issue is solved.

@appml
Copy link
Owner

appml commented Jul 4, 2023

Could you please tell me what specific Android-API is used to make built_in_variables normally working in neutrinote? Maybe I should raise a ticket for lineageos.org/

End of line newlines should work in the next build (v4.4.1b)
I'm looking forward for it :)

After setting built_in_variables, did you do "Restore App Data" for the setting to take effect?

Oh my god. Is this true?! Thank you so much. This was it :D Now the built_in_variables are working properly :)

Maybe it would be a solution to put the procedure of "Restore App Data" at every App-Restart? Would it make sense? Or maybe for "only" refreshing refreshing the both files: ~neutrinote_settings_data.txt and ~neutrinote_shortcuts.txt

Shortcut changes are immediately detected. The settings file changes need extra steps since they are reserved for experimental stuff.

PS.: Though I've got the toast-message: "Please check your backup-settings." it has worked out. PPS.: What should be done at the message "Please check your backup-settings."? When I go to settings I cannot change the "Local Repository Path". When I push at "Local Repository Path" I only get shown the currently configured folder, where the notes are stored. I really don't now what to do when I get "Please check your backup-settings.". Where should this settings be changed? Should a new ticket be opened for this? Because the initial issue is solved.

All you need to do is to go to Settings, look for "Auto Backup / Mirror", turn it off then on, then pick a backup folder. The nagging msg will disappear.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants