.vimperatorrc
changeset 23 d82f8c4f1fad
parent 21 15ed806d9209
child 24 632395ebd97f
equal deleted inserted replaced
4:a4839425930a 5:96b420a205c0
    60    { label: 'my',  custom: function() {
    60    { label: 'my',  custom: function() {
    61        var [t, u, s] = get_tus(window, document);
    61        var [t, u, s] = get_tus(window, document);
    62        s = s.replace(/\n/, "\n  ");
    62        s = s.replace(/\n/, "\n  ");
    63        return t + ":\n  - " + u + (s? ("\n  >>\n  " + s + "\n  <<"): '');
    63        return t + ":\n  - " + u + (s? ("\n  >>\n  " + s + "\n  <<"): '');
    64    }},
    64    }},
       
    65    { label: 'sc',  custom: function() {
       
    66        var t = content.document.title;
       
    67        var u = content.location.href.replace(/^.+ScrapBook\/data\//, '');
       
    68        return '[sc] &scrapbook(' + t + ',' + u + ');';
       
    69    }},
    65    { label: 'datestr',  custom: function() {
    70    { label: 'datestr',  custom: function() {
    66        return '[' +  content.location.href.match(/\d\d\d\d-\d\d-\d\d-\d+/) + ']';
    71        return '[' +  content.location.href.match(/\d\d\d\d-\d\d-\d\d-\d+/) + ']';
    67    }},
    72    }},
    68 ];
    73 ];
    69 })();
    74 })();