diff --git a/ui (gen4)/features/ui-widgets.js b/ui (gen4)/features/ui-widgets.js index d65b3c15..d1953e44 100755 --- a/ui (gen4)/features/ui-widgets.js +++ b/ui (gen4)/features/ui-widgets.js @@ -758,6 +758,21 @@ var DialogsActions = actions.Actions({ `, makeUIDialog(function(list, options){ return browse.makeList(null, list, options) })], + showTree: ['- Interface/', + makeUIDialog(function(list, options){ + return browse.makePathList(null, + list, + Object.assign({ + /* + cls: 'browse-actions', + //path: '/', + flat: false, + traversable: true, + pathPrefix: '/', + //fullPathEdit: true, + //*/ + }, options || {})) })], + // XXX do we need to split the options??? showEditableList: ['- Interface/', core.doc`Show editable list dialog... diff --git a/ui (gen4)/lib/widget/browse.js b/ui (gen4)/lib/widget/browse.js index 3daf01f8..c928283c 100755 --- a/ui (gen4)/lib/widget/browse.js +++ b/ui (gen4)/lib/widget/browse.js @@ -4389,7 +4389,7 @@ PathListPrototype.options = { var match = function(a, path){ var marker = that.options.itemShortcutMarker marker = marker && RegExp(marker, 'g') - path = marker ? e.replace(marker, '$1') : path + path = marker ? path.replace(marker, '$1') : path // NOTE: might be good to make this recursive when expanding // pattern support... return a