Commit Graph

128 Commits

Author SHA1 Message Date
ef23930eaf update floating autocomplete position on scroll 2024-03-31 07:50:44 -04:00
d4a6a7f55f don't show "no matching" on cursor move 2024-03-31 07:50:15 -04:00
f4e38c7cd1 handle fuzzy-matched part in empty auto-complete 2024-03-31 07:49:48 -04:00
21480862f5 add ctrl+space to force autocomplete menu 2024-03-29 08:42:05 -04:00
8ea2c12278 hide autocomplete on enter-send 2024-03-27 14:50:55 -04:00
2b5eadfbec Merge branch 'staging' into parser-v2 2024-03-27 13:52:56 -04:00
0bf6835de2 Add "compact" argument to message sending commands. 2024-03-27 19:40:34 +02:00
5c5314712c Merge branch 'staging' into parser-v2 2024-03-27 12:49:27 -04:00
6d02223bd4 Fix cases with persona autoswitch 2024-03-27 15:16:20 +02:00
d9c5d0b616 make fuzzy wildcards non-greedy 2024-03-26 20:13:41 -04:00
7078fc76ba Merge branch 'staging' into parser-v2 2024-03-26 13:14:28 -04:00
78ba88f94f set active character / active group in /go command 2024-03-26 12:21:22 -04:00
083dd8ba88 ignore modifier keys 2024-03-25 10:47:12 -04:00
da6372cf86 add fuzzy and include matching for autocomplete 2024-03-25 10:44:52 -04:00
488fe15ab6 no space after autocomplete 2024-03-25 09:21:58 -04:00
e8a188e257 only show autocomplete options on input 2024-03-25 09:21:45 -04:00
522b6286ee Merge branch 'staging' into parser-v2 2024-03-25 09:08:18 -04:00
376a83511c basics for new parser 2024-03-25 08:53:36 -04:00
5e8999cc43 Add comments to STscript 2024-03-25 14:22:39 +02:00
848af1fd4b Add inject roles to slash command 2024-03-23 18:44:40 +02:00
cda7ab0530 Add /model command 2024-03-15 16:08:22 +02:00
bb53fef531 Clean-up docs and leftover logs 2024-03-06 23:10:52 +02:00
9a6824f86c Merge pull request #1886 from parsedone/patch-2
Fixes [BUG] STscript parser() incorrectly manages spaces
2024-03-06 23:04:10 +02:00
975206fd06 Clean-up /fuzzy command doc comments 2024-03-03 16:04:48 +02:00
d217a4e32f Fixes [BUG] STscript SlashCommandParser.parser() incorrectly manages spaces
Fixes bug SillyTavern#1884

Parses a command even when spaces are present in arguments

Examples that now work:

/buttons labels=["OK","I do not accept"] some text /fuzzy list=[ "red pink" , "yellow" ] threshold=" 0.6 " he yelled when the color was reddish and not pink | /echo
2024-03-03 04:09:58 +01:00
88f42132c2 Update slash-commands.js [BUG] STscript /fuzzy returning wrong answer
Implements fix of the bug #1883 "[BUG] STscript /fuzzy returning wrong answer".

Fix the params so tha /fuzzy detect when a "candidate" item is found (using fuzzy matching) in the text passed without argument name.
Also added optional "threshold" that allows to change the value used by Fuse in order to have stricter or looselier matching.

Also updated the parser.addCommand('fuzzy', fuzzyCallback
2024-03-03 03:43:44 +01:00
f0141b4dd1 Update slash-commands.js 2024-02-20 16:57:00 +02:00
095cd873de Update slash-commands.js
added the word "persona" to the /sync description to make it easier for users to find.
2024-02-20 16:48:43 +04:00
8e66a14e37 Add hints to doc strings about additional command prompts 2024-02-20 02:29:14 +02:00
550d8483cc Extend impersonate/continue/regenerate with possible custom prompts
- Use custom prompt provided via slash command arguments (similar to /sysgen and others)
- Use written text from textbox, if the popout menu actions are clicked
2024-02-19 22:23:58 +01:00
29b971a986 Merge branch 'staging' into slash-fix-bleed 2024-02-16 20:48:32 +02:00
a8cd6c9fe7 Allow finding characters in slash commands by exact PNG name 2024-02-16 20:24:47 +02:00
cab6f90519 stop named args from nested commands bleeding into parent 2024-02-09 22:49:38 +00:00
44a3bb8ec7 #1777 Add await argument to /trigger command 2024-02-08 00:20:36 +02:00
07677584c4 #1781 Fix /len and unescape for non-string arguments 2024-02-03 02:06:49 +02:00
2cdf928fc7 unescape args before calling callback 2024-01-26 18:58:44 +00:00
1647e5ae49 Merge pull request #1734 from khanonnie/alternative-tokens
Implement Token Probabilities UI panel using logprobs
2024-01-26 03:39:25 +02:00
60044c18a4 Implement Token Probabilities UI using logprobs 2024-01-25 18:34:46 -06:00
6ff998816d #1728 Missed one 2024-01-25 03:28:30 +02:00
55984a59bb #1728 Allow zeros in {{pipe}} macro 2024-01-24 21:19:29 +02:00
4fe13fab8e Customizable /gen instruct name 2024-01-12 19:16:42 +02:00
d5e3f5491d Fix formatting 2024-01-05 20:12:59 +02:00
1b86ded198 add group support to /go 2024-01-05 18:02:44 +00:00
03b80900d6 add optional named arguments to /run command 2023-12-27 12:28:15 +00:00
a85a6cf606 Allow displaying unreferenced macro in message texts 2023-12-21 20:49:03 +02:00
029cf598ce Fix /peek command 2023-12-19 23:12:14 +02:00
f249ff8b20 Fix slash commands for offscreen group members 2023-12-18 01:39:37 +02:00
69f90a0b30 add /tokens slash command to call getTokenCount 2023-12-11 22:51:07 +00:00
6f610204d6 Merge pull request #1488 from LenAnderson/add-index-argument-to-setvar-/-setglobalvar
Add index argument to setvar / setglobalvar
2023-12-08 00:40:14 +02:00
2607e787ff Put comment command on hold 2023-12-08 00:38:13 +02:00