Coder Social home page Coder Social logo

Comments (3)

ThereforeGames avatar ThereforeGames commented on July 4, 2024

Hi @redstoneguy10ls,

When you say that the escape character doesn't work, do you mean that the backticks are showing up in your final prompt, or something else?

I am not able to reproduce the issue on v11.0.0:

It is also worth mentioning that the backticks are not necessary for this particular prompt - since [kimono|dress] is not a valid shortcode, Unprompted will assume you want to print it literally.

from unprompted.

redstoneguy10ls avatar redstoneguy10ls commented on July 4, 2024

basically i want to literarily have [kimono|dress] appear in my prompt when called from a choose file like this
[chose]
idk some choise
[kimono|dress]
[/chose]
and currently it stops at the |

from unprompted.

ThereforeGames avatar ThereforeGames commented on July 4, 2024

Hi @redstoneguy10ls,

Thank you for clarifying. This issue occurs because [choose] splits options by two things: linebreaks and the standard delimiter, which is | by default.

A couple possible solutions:

  1. In your config file (or inside a [config] block), you can change the value of Config.syntax.delimiter to something else. It can be more than one character long, if that helps.

  2. I just released Unprompted v11.0.2, which includes the new special string %PIPE%. If you use this in a prompt, it will circumvent the normal sanitization rules and will be replaced with | after Unprompted finishes processing. Example:

image

Let me know if you have any further questions. Thank you.

from unprompted.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.