[go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MULTILINE_PROMPT: using space with background #5624

Merged
merged 3 commits into from
Jul 25, 2024
Merged

Conversation

anki-code
Copy link
Member
@anki-code anki-code commented Jul 23, 2024

Motivation

By default we have $MULTILINE_PROMPT='.' and when you want to copy the code from history you need to remove dots manually. To reduce this I suggest to use space with background i.e. $MULTILINE_PROMPT = "{BACKGROUND_#222222} {RESET}.
After tests it works in ptk, readline and with xonsh -DCOLOR_INPUT=0 -DCOLOR_RESULTS=0 it will just show the space.
Also it looks pretty good.

Before

image

image

After

image

image

For community

⬇️ Please click the 👍 reaction instead of leaving a +1 or 👍 comment

@anki-code anki-code marked this pull request as ready for review July 23, 2024 12:31
jnoortheen
jnoortheen previously approved these changes Jul 23, 2024
@anki-code anki-code merged commit 32d72af into main Jul 25, 2024
12 checks passed
@jnoortheen jnoortheen deleted the anki-code-patch-8 branch July 29, 2024 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants