Skip to content

Configurable REPL prompt#460

Open
coke wants to merge 1 commit into
mainfrom
coke/repl
Open

Configurable REPL prompt#460
coke wants to merge 1 commit into
mainfrom
coke/repl

Conversation

@coke

@coke coke commented Jan 10, 2025

Copy link
Copy Markdown
Contributor

(when merging, please squash into a single commit)

@coke coke marked this pull request as ready for review January 10, 2025 23:09
@coke coke requested a review from codesections as a code owner January 10, 2025 23:09
Comment thread solutions/rakudo/Configurable-REPL.md Outdated
@patrickbkr

Copy link
Copy Markdown
Member

I wonder, how does this relate to the recent let's-make-a-new-REPL work?

@lizmat

lizmat commented Jan 17, 2025

Copy link
Copy Markdown
Collaborator

@patrickbkr I've incorporated this proposal in the Prompt module: lizmat/Prompt@408130e

Working on the documentation now, which I will steal from @coke :-)

@lizmat

lizmat commented Jan 17, 2025

Copy link
Copy Markdown
Collaborator

Looking at this more in depth, I think the \t for date time information is wrong, as it clashes syntactically with "\t" for tab. Propose to move \t to \d

@lizmat

lizmat commented Jan 17, 2025

Copy link
Copy Markdown
Collaborator

The REPL distribution now has support for the RAKUDO_REPL_PROMPT environment variable, and support for expansion of various escape sequences.

I've taken the list here, changed \t to \d, added \t for tab, and added support for some more strftime formats


### formatting

> reset, normal, bold, dim, italic, underline, blink, inverse, hiddne, strikethrough

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hidden not hiddne

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants