David Barnett

Results 156 issues of David Barnett

`Syscall.CallAsync` expects a callback with signature `callback({env_dict}, {result_dict})`, where env_dict contains cursor and vim state info. In practice, it's not easy to remember the argument order, and it's easy enough...

enhancement

Plugins that provide default mappings generally configure a default mapping prefix like `=` and then take a boolean value for `plugin[mappings]` as a shortcut for that prefix. For instance ```...

enhancement

Since maktaba strives for broad vim support and backwards compatibility, we should be testing against the oldest vim version we intend to support and possibly the latest development version of...

enhancement

Vim's GUI menus are extensible (see `:help creating-menus`), but it requires some hacks to e.g. manage the order of entries or work with the late-loaded syntax menu. Maktaba could have...

enhancement

If you want to perform a regex search in a string as with `match()`, there doesn't seem to be any way to get all matches at once except for awkwardly...

enhancement

We have a few `Syscall.Call*` methods to execute system commands with various background and foreground strategies, but nothing appropriate for long-running commands like builds and test runs where users might...

enhancement

Maktaba has trouble consistently reading the right plugin names from addon-info.json for some functions like `maktaba#library#Require`. If you have a library plugin that looks like ``` somedirname/ somedirname/addon-info.json

bug

Similar to #112, `maktaba#plugin#Get` and related functions like `maktaba#library#Require` will detect the wrong name for plugin dirs named like `github-USER-PLUGINNAME/`, which is a convention that VAM uses. For instance, ```...

enhancement

The `makataba#syscall` functions seem to garble newlines you try to pass to them. For example: ``` VImL :echo maktaba#syscall#Create(['echo', "foo\nbar"]).GetCommand() ``` ``` echo 'foo\ bar' ``` I think it will...

bug

Syscall.CallForeground and the s:EscapeSpecialChars function it uses don't have any special handling for ``, ``, etc. Should they?

enhancement