Giter VIP home page Giter VIP logo

Comments (7)

steven-tey avatar steven-tey commented on July 20, 2024 3

Yes you can – all you need to do is hit Esc when the generation starts and it automatically aborts it and gives you your "++" back!

Here's the code for it: https://github.com/steven-tey/novel/blob/main/ui/editor/index.tsx#L109-L130

I've debated between "++" vs "+++", but settled for ++ since it's lesser keystrokes (at the risk of conflicting with more common words/phrases).

from novel.

SamikshyaKarki0 avatar SamikshyaKarki0 commented on July 20, 2024 3

You can use visual studio code if you would like can't you??

from novel.

Azad-Aihub avatar Azad-Aihub commented on July 20, 2024 1

A roundabout way: Enter a space between the two plus signs and delete them later

from novel.

vd-07 avatar vd-07 commented on July 20, 2024 1

@GLips @steven-tey @AeroXi Can we use something like a timegap between the consecutive ++ keypresses to differentiate whether the intention is ++ or Autocomplete?

Example: If the time diff between two consecutive ++ is more than 500 ms then treat it as intentional otherwise Autocomplete.

from novel.

AeroXi avatar AeroXi commented on July 20, 2024

A roundabout way: Enter a space between the two plus signs and delete them later

Yes it is a good way. Is there any better way to implement this ++ feature?

from novel.

Azad-Aihub avatar Azad-Aihub commented on July 20, 2024

A roundabout way: Enter a space between the two plus signs and delete them later

Yes it is a good way. Is there any better way to implement this ++ feature?

ui/editor/index.tsx
You can modify this file, for example to change '++' to '%%'

from novel.

GLips avatar GLips commented on July 20, 2024

Cmd+z should work too, but neither of these solutions work great on mobile since there's no esc or cmd+z

from novel.

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.