Refresh filtered list

I’m still waiting for this feature too.

But based on @complexpoint script for a toolbar-less searching interface, I could put up a quick (and dirty *) solution for refreshing the filtered view:

(function () {
    'use strict';

    function TP3Search(strQuery, blnSet) {
        blnSet = (typeof blnSet !== 'undefined' ? blnSet : true);

        function fnSearch(editor, options) {
            return options.set ? (
                editor.itemPathFilter = options.query
            ) : editor.itemPathFilter;
        }

        var ds = Application("TaskPaper").documents;

        return ds.length ? ds[0].evaluate({
            script: fnSearch.toString(),
            withOptions: {
                query: strQuery,
                set: blnSet
            }
        }) : '';
    }

    return TP3Search(TP3Search('', false));

})();

This script doesn’t preserve the cursor position.

_

* I’m not into Taskpaper Scripting API yet, nor into Javascript for Automation, so…