Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Need explanation of status line #401

Closed
lsiden opened this Issue · 14 comments

4 participants

@lsiden

In the docs, I'd like to see an explanation of the status line. What does "prt" mean. What does "={ mru files }= <->", etc. mean? It looks like the highlighted one between the curly braces might be the current mode, but what do the ones between the angular braces mean and why do they change places when they're toggled?

@kien
Owner

They are actually pretty much self-explanatory and extremely obvious once you do something that changes them. You don't really need to care what they indicate from the start (or at all) so I don't think documentation is necessary.

@kien kien closed this
@lsiden
@kien
Owner

Yes, that's correct. The "ring" rotates when you use <c-f> or <c-b>. And prt changes when you use <s-tab>. It might be nice to have all these explained throughout but it's really not necessary. You don't need to understand them to use anything, and your first guesses are most probably correct.

@lsiden
@kien
Owner

Nothing unless you know what you're using <s-tab> for.

@kien kien referenced this issue from a commit
@rgrinberg rgrinberg tags for ocaml
refs #401
a14edbf
@jsit

I agree that this is weird and non-obvious.

The most confusing thing about it for me is that the "ring" "moves", rather than the highlight simply moving from left to right, as one would expect on window tabs.

The characters between the "tabs" are cryptic and make the status line difficult to read. Why >={? Why not simply a vertical bar (|) between each "tab"? I've been using CtrlP for a while now and I still don't know what that <-> is at the far right of the status line.

Is there an option to define the separator characters? I looked but didn't see one.

Great plugin, the interaction just strikes me as bizarre.

@lsiden
@kien
Owner

I can see that there's always someone who finds it confusing, at least at first.

But I also don't think it's worth documented. You don't need to understand the statusline to do anything. Plus the help is already long as it is, people barely read it.

@jsit they aren't tabs because there are more than 3 extensions. And you'll see what <-> is once you use the feature that changes it.

Is there an option to define the separator characters? I looked but didn't see one

Well, you can create your own statusline with g:ctrlp_status_func. Change everything if you feel like doing so.

@lsiden
@jsit
@kien
Owner

@lsiden using an option (g:ctrlp_status_func) to customize the statusline is a bit different from forking and making change directly to the code. The former is what I am saying and mean.

Why do you think there's an option in the first place? Why don't I just not add it and tell everyone to fork the project, like you're saying? The option is there precisely because I figured some people would want to change the statusline, that whatever I chose wouldn't satisfy everyone.

@jsit is for aesthetic good enough a reason? Because that was the reason the <prev>={current}=<next> was chosen.

@lsiden
@kien
Owner

@lsiden I don't think I'm being sarcastic(?). I always try to be matter of fact with my responses. I don't speak English natively, nor as a secondary language, so I'm sorry if somehow I gave off the wrong tone.

@zhuweifeng314

Kind of figured out the meanings ( just my understanding ).

prt: indicates that the focus is on the prompt, not on the match window. When you use <s-tab> ( shift + tab ) to change the focus to the match window, prt will be win ( which indicates match window ).

<->: when you use <c-z> to mark item in the match window, <-> will display the number of items you marked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.