akinomyoga / ble.sh

Bash Line Editor―a line editor written in pure Bash with syntax highlighting, auto suggestions, vim modes, etc. for Bash interactive sessions.
BSD 3-Clause "New" or "Revised" License
2.33k stars 77 forks source link

Setting the statusline color #400

Closed Vosjedev closed 5 months ago

Vosjedev commented 5 months ago

I was searching for an option to set the backgroud color, or even better in my case, disable the background. I would suggest adding this as the prompt_status_line_background and disabling the backgroundcolor if set to empty.

akinomyoga commented 5 months ago

There is already a setting: see face prompt_status_line.

# blerc

ble-face prompt_status_line=none

You can basically put the setting in ~/.blerc. If you try that on the command line, to make it reflected, you need to reset bleopt prompt_status_line after changing face prompt_status_line. Maybe I can adjust ble.sh so that the change to face prompt_status_line in the command line is immediately reflected.

Vosjedev commented 5 months ago

Ah, I didn't know about that option existing, missed it while browsing the .blerc template. Sorry!

akinomyoga commented 5 months ago

Thanks.

Maybe I can adjust ble.sh so that the change to face prompt_status_line in the command line is immediately reflected.

I have implemented this in commit f3e7e386cb1b9b5eb464e1bc23bb882b03f2d25d

missed it while browsing the .blerc template

Also, in the same commit, I moved the face to the place where bleopt prompt_status_line is explained in blerc.template. Other faces are also moved to relevant places in blerc.template.

I also added a note in the item of bleopt prompt_status_line in the wiki.

Vosjedev commented 4 months ago

I moved the face to the place where bleopt prompt_status_line is explained in blerc.template.

That's usefull, thanks!

On 6 February 2024 4:16:40 am GMT+01:00, Koichi Murase @.***> wrote:

Thanks.

Maybe I can adjust ble.sh so that the change to face prompt_status_line in the command line is immediately reflected.

I have implemented this in commit f3e7e386cb1b9b5eb464e1bc23bb882b03f2d25d

missed it while browsing the .blerc template

Also, in the same commit, I moved the face to the place where bleopt prompt_status_line is explained in blerc.template. Other faces are also moved to relevant places in blerc.template.

I also added a note in the item of bleopt prompt_status_line in the wiki.

-- Reply to this email directly or view it on GitHub: https://github.com/akinomyoga/ble.sh/issues/400#issuecomment-1928710132 You are receiving this because you modified the open/close state.

Message ID: @.***>