powerline / powerline

Powerline is a statusline plugin for vim, and provides statuslines and prompts for several other applications, including zsh, bash, tmux, IPython, Awesome and Qtile.

Home Page:https://powerline.readthedocs.org/en/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.