Fix autocomplete for partially escaped filenames
Created by: huntergoldstein
Fixes: Closes #348 (closed).
Changes introduced by this pull request:
- Add
unescape
which maps from escaped strings to their raw counterparts - Add custom logic for determining word boundaries for
liner
completions; this is based off the default completer with some adjustments for backslash.
Drawbacks:
- I can't remember who, but someone mentioned that we ought to have some central list of what should get escaped / un-escaped; this builds on the problem without fixing it. Additionally this does not allow something like:
$ touch "foo(bar)"
$ rm "foo(<Tab>
to autocomplete "foo(
to "foo(bar)"
.
State: Ready to go!