appml / neutrinote

neutriNote - the original extensible Markdown + Math note app. Non-commerical. No lock-ins. Only 3 MB footprint & highly optimized. Designed for plaintext purists.
GNU General Public License v3.0
335 stars 23 forks source link

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

Open hinhul opened 1 year ago

hinhul commented 1 year ago

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 commented 1 year ago

Hi,

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

Thx.

hinhul commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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.