Skip to content
This repository has been archived by the owner on Apr 24, 2020. It is now read-only.

[feature] Honor multiline prefix parameters even when POWERLEVEL9K_PROMPT_ON_NEWLINE is false #1362

Open
romkatv opened this issue Sep 9, 2019 · 1 comment

Comments

@romkatv
Copy link

romkatv commented Sep 9, 2019

Currently parameters such as POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX have no effect unless POWERLEVEL9K_PROMPT_ON_NEWLINE is true. It would be nice to remove this restriction. Then one could define prompts line this:

frame

Backward compatibility is a bit tricky. In my fork I implemented this feature as follows:

  1. If POWERLEVEL9K_PROMPT_ON_NEWLINE is true, display prefixes the same as in the original powerlevel9k.
  2. If POWERLEVEL9K_PROMPT_ON_NEWLINE is false, display only those prefixes that are defined explicitly by the user.

This didn't cause any complaints from users. Presumably, if someone explicitly sets POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX, they want it to have some effect, so honoring this parameter does't break anything even though it's technically not backward compatible with powerlevel9k.

@brianjlandau
Copy link

Is there a fix/workaround for this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants