added .showTree(..) action...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2018-12-14 03:44:39 +03:00
parent 98f1f7fde2
commit 8085cbe12a
2 changed files with 16 additions and 1 deletions

View File

@ -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...

View File

@ -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