Created
November 3, 2015 15:00
-
-
Save Jagua/26caad7503c879dbf8da to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" panotoday: {{{ | |
nnoremap <Leader>pt :<C-u>panotoday<CR> | |
js <<EOM | |
if (1) { | |
commands.addUserCommand( | |
['panotoday'], | |
'create (or switch to) a tabgroup, named for the date today', | |
function (args) { | |
let today = (new Date()).toLocaleFormat('%m/%d'); | |
liberator.execute('panorama ' + | |
(TabGroup.prototype.getGroup(today) ? 'switch' : 'add') + | |
' ' + today); | |
},{ | |
}, | |
true | |
); | |
} | |
EOM | |
" }}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment