now browse filter is case-agnostic...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2015-11-07 22:14:19 +03:00
parent 4aa6ec56ed
commit 3eb4d2c695
3 changed files with 8 additions and 4 deletions

View File

@ -647,7 +647,7 @@ var BrowserPrototype = {
// maintain focus within the widget...
if(focus && browser.find(':focus').length == 0){
this.focus()
that.focus()
}
})
@ -769,6 +769,8 @@ var BrowserPrototype = {
// string...
// NOTE: this supports several space-separated patterns.
// NOTE: this is case-agnostic...
// ...for case sensitivity remove .toLowerCase()...
// XXX support glob...
} else if(typeof(pattern) == typeof('str')){
//var pl = pattern.trim().split(/\s+/)
@ -778,10 +780,10 @@ var BrowserPrototype = {
// remove empty strings...
.filter(function(e){ return e.trim() != '' })
// remove '\' -- enables direct string comparison...
.map(function(e){ return e.replace(/\\(\s)/g, '$1') })
.map(function(e){ return e.replace(/\\(\s)/g, '$1').toLowerCase() })
var filter = function(i, e){
e = $(e)
var t = e.text()
var t = e.text().toLowerCase()
for(var p=0; p < pl.length; p++){
// NOTE: we are not using search here as it treats
// the string as a regex and we need literal

View File

@ -214,6 +214,8 @@ module.GLOBAL_KEYBOARD = {
},
A: {
alt: 'browseActions',
'alt+shift': 'listActions',
ctrl: 'toggleMark!: "ribbon" "on"',
},
D: {

View File

@ -2369,7 +2369,7 @@ var makeActionLister = function(list, filter, pre_order){
}))
// XXX DEBUG
window.LIST = o.client
//window.LIST = o.client
return this
}