cgeo icon indicating copy to clipboard operation
cgeo copied to clipboard

Variables transfer to and from Personal Note

Open brivars opened this issue 2 years ago • 9 comments

Tell us your idea!

Implement a "Copy to Personal Note" option on the cache variables page. This would allow for an easy way to store the values on geocaching page to access them later and from anywhere, not only within c:geo.

As an addition, could also implement a "Scan Personal Note" option, similar how there is a "Scan description" one. So If I have stored some values for the cache in the note, I could get them into the Variables section. (e.g. in the note they could be written down as A1 B4 / A-1 B-4 / A=1 B=4)

What solution would you suggest?

I really like the idea of the Variables tab, but I find that I'm not using it because I want all that information stored in the note. So hence the idea. Normal usage scenario would be to do the variables stuff and noting down the values in the Variables tab, and once I'm done, to hit the button "Copy to Personal Note" to transfer all of them over, just as plain text to the note. At the moment, as far as I know, I would have to manually write them out, one by one, as there is no way to select all and copy.

And other way round, for example, I have multi-cache that I have started doing and stored values A=5 C=3 in the cache note, but need to finish the cache some other time, it would be nice to scan the note and extract and prefill the variables tab with the values stored there.

Is there an alternative?

No response

Additional Information

No response

brivars avatar May 26 '22 01:05 brivars

@brivars putting vars into note and vice versa is already integrated in c:geo. It is part of the waypoint scan/retrieval for personal note. Just use the "refresh waypoints in note" button under the personal note to put also variables there

eddiemuc avatar May 26 '22 05:05 eddiemuc

Screenshot_20220526-072921.jpg

Screenshot_20220526-073025.jpg

eddiemuc avatar May 26 '22 05:05 eddiemuc

While doing screenshots above I noticed a bug in this feature: extraction of vars and waypoints is only possible if cache has at least one user waypoint. Just vars can't be extracted if cache has no such waypoint. This must be fixed.

eddiemuc avatar May 26 '22 05:05 eddiemuc

I would like to have that function also available from the waypoint-tab 😊 Probably in the menu-entry "waypoints"?

murggel avatar May 26 '22 06:05 murggel

While doing screenshots above I noticed a bug in this feature: extraction of vars and waypoints is only possible if cache has at least one user waypoint. Just vars can't be extracted if cache has no such waypoint. This must be fixed.

Thanks for that! And yes, I have tested and also need to have a waypoint, for the variables to transfer over.

Would still be nice to add the button to the Variables tab. And potentially enable scanning the note to get variables? :)

It's an amazing feature, thank you guys for making this!

brivars avatar May 27 '22 00:05 brivars

And potentially enable scanning the note to get variables? :)

This is also implemented. If you write vars in the format $A=3+4 in your "normal" note then this will/should be scanned into var tab (I haven't checked wether a similar bug is present as with the other way around, maybe also at least one waypoint needs to be present there). However, scan will not override existing values, so if A is already defined with a different formula this will not be changed.

eddiemuc avatar May 27 '22 05:05 eddiemuc

Could be discussed if other var formats should be considered as well e.g. also A=5+4 (without $, only for one-letter-vars) or A3 (only for one-letter-vars followed by pure number

eddiemuc avatar May 27 '22 05:05 eddiemuc

PR #13058 fixed the issue related to extraction: now vars are also extracted when there's no user waypoint to extract.

Wrt adding an action to waypoint tab to trigger extraction: i want this discussed in a bigger audience first.

eddiemuc avatar May 27 '22 14:05 eddiemuc

Wrt adding an action to waypoint tab to trigger extraction: i want this discussed in a bigger audience first.

There is already a sub-menu for waypoints. Probably a entry in there?

murggel avatar Jun 05 '22 21:06 murggel