powerline.segments.shell.cwd eats unknown arguments, causing several hours of confusion
SIGSTACKFAULT opened this issue · comments
"hours of debugging can save you five minutes of reading the manual"
I wrote this in ~/.config/powerline/themes/default.json
:
{
"function": "powerline.segments.shell.cwd",
"args": {"use_path_seperator": true}
},
most natural thing in the world. you probably barely even read it.
it didn't do anything. no error, it just continued working with soft seperators
that's because the argument is actually use_path_separator
, not use_path_seperator
the actual problem
powerline.segments.shell.cwd ignores arguments it doesn't understand, instead of throwing an error like every other segment.