Age | Commit message (Collapse) | Author |
|
`s:MatchString()` needs to have the search string as its first argument,
because that's how it will get passed in when referenced above as:
call filter(tabs, function('s:MatchString', [a:search]))
Also had some trouble getting the line continuation to work on the
`return`, so had a few experiments messing with that trying to get it to
work.
|
|
Otherwise it splits on spaces, and I end up with word elements in my
list instead of line elements.
|
|
Repurposed some code from my LsGrep plugin. We grab output from `:tabs`
and run it through a filter to get only the matching file names.
We also want to include the "Tab page 1" lines, so these need to be
filtered specially.
|