Google Keep Notes sorter 2020-03-29

Alphabetise Google Keep Notes using AutoShare and Tasker

  1. Nightcustard
    Screenshot_20200330-201322.png Screenshot_20200330-201412.png This is a very simplistic use of AutoShare and Tasker within Android to overcome the irritating omission from Google Keep Notes of an alphabetic sort facility. It only works on text with no tick boxes (you can't do a 'select all' with tick boxes visible as this will only select that one item).
    The sorting is performed by one line of javascript - the previous version could only sort alphabetically but thanks to those nice folks at Stack Overflow, the code can now sort alphanumerically and treats upper and lower cases appropriately. A link to the Stack Overflow page is given within the code.
    Please note I accept no responsibility for deleted/corrupted/mangled notes. Please try it out on a copy of the note you want to sort before trying it out on the real thing, although if it does something unwanted, you can always recover your note by pressing the anticlockwise arrow beneath the mangled note. I'm running Android 10, Tasker 5.9.2 and AutoShare v2.1.1

    Note: As of August 2021, the Autoshare Text Processor method used here stopped working for me - for some reason the 'sorter' task doesn't run when the profile is triggered. The only way I found which worked uses the Autoshare Command method rather than the Text Processor method. Instead of passing the sorted text back to Google Keep, the Command method passes it to the clipboard so you'll now have to re-highlight the unsorted text and paste over it with the contents of the clipboard.

    So if the Text Processor method doesn't work for you, please try the alternative 'Google Keep Notes Sorter - Autoshare Command'

    TL/DR instructions:

    Install AutoShare; Create a Text processor (called 'SortA', with timeout set to 5 secs (the default)), back out of AutoShare to save. Import the Google Keep Notes Sorter project. Within Tasker ensure the 'AutoShare Process Text Text Processor: SortA' profile is enabled and (hopefully) that's the set up done.

    To use, open a previously saved list in Google Keep Notes, remove any check boxes and then do a select all. Press the three vertical dots to the right of the Share menu and select 'AutoShare' (or if running Android 11 and later, select 'AutoShare' from the 'Share' pop-up menu). You'll get a message saying 'processing text' and after a couple of seconds you'll find your list is sorted.

    Longer-winded instructions:

    Install AutoShare
    Click on 'Manage Text Processors'
    Press the '+' button in the upper right hand corner to add a new processor.
    Name the Text Processor 'SortA' (to match the profile in the Tasker project, of course you can use any name you like if you edit the project to suit).
    Select an Icon from the list (it can be anything - I chose the AutoShare icon from the 'App Icons' list)
    Leave all other settings at their defaults.
    Back out of AutoShare to save the changes.

    Press the 'Download Now' button to download 'Keep_Sorter.prj.xml'
    Open Tasker
    Long press the home icon at the bottom left of the screen.
    In the popup menu which appears, select 'Import Project'.
    Navigate to where you've downloaded the 'Keep_Sorter.prj.xml' file (probably the 'Download' folder) and select 'Keep_Sorter'.
    Tasker should then import the project with no error messages.
    You'll find you have a new project listed on the project bar - press it to select.
    Go to 'Profiles' and ensure the only profile listed ('AutoShare Process Text Text Processor: SortA') is enabled. Enable it if not.
    Exit Tasker via the three vertical dot menu in the top right hand corner.

    To use:
    Open Google Keep Notes.
    As advised above, make a copy of the first list you want to sort.
    Open that list.
    Remove any tick boxes by pressing the three vertical dot menu at the top right of the display and selecting 'Hide Checkboxes'.
    Long press on the text to be sorted and choose 'Select all' in the share menu which will have appeared.
    From the same share menu press the three vertical dots.
    One of the listed choices will be 'AutoShare' - select it (or if running Android 11 and later, select 'AutoShare' from the 'Share' pop-up menu).
    After a couple of seconds your list will be sorted.