David Barnett
David Barnett
@Soares What do you think about my initial question, whether it makes sense for Register to verify whether a plugin has been installed? Is it too weird being able to...
Nope, I don't think that's at all what I mean. I went ahead and sent a pull req (#60) since it's probably easier to explain when there's code available for...
Discussing the naming with @Soares in #60. "Register" is too vague and we haven't found another name we both like. I'm thinking something like "Init", "Activate", "Setup", or… "Maktabaize"? Another...
Should be able to work around the shell override by adding ```vim call maktaba#syscall#SetUsableShellRegex('\v^/bin/sh|cmd|cmd\.exe|command\.com$') ``` to your vimrc after maktaba is loaded, and then vim will at least try to...
In general, we should try to detect and give a better error when the shell doesn't exist. The vim error from `system()` for that case isn't great... I see a...
I tried firing up Wine and installing vim but I can't even figure out how to get it to invoke any shell command. I tried ```vim :set shell=cmd.exe :echo system('dir')...
One utility that might help would be a `maktaba#complete#ParseCmdline()` that would split out the command name, modifiers like range and bang, and the `` and `` values. Might also be...
A few terrible ways I can imagine for implementing this: - Use a BufReadPre autocmd to add a BufRead autocmd immediately before the event fires so it's the last event...
You can get it with two hacky lines of vimscript: ``` vim let g:maktaba_log = [] call maktaba#log#AddHandler(maktaba#function#FromExpr('add(g:maktaba_log, a:000)'), 1) ``` The real answer is to publish a simple plugin...
Almost. The list reference would be updated as new messages come in. But actually, something like `maktaba#log#DumpRecentEntries()` could just return a copy of `s:log_queue`. Then users just have to bump...