43dd251ca1
remove some logging
2024-04-11 14:34:47 -04:00
66c5fc554d
switch textarea to monospace when value starts with slash
2024-04-09 20:11:02 -04:00
e3ee93d838
stop executeSlashCommand if parser throws
2024-04-09 13:27:12 -04:00
3a5691ffe8
fix typo
2024-04-08 19:30:39 -04:00
d1682350e3
fix alias list in help string
2024-04-07 16:50:04 -04:00
16e8037e7f
cleanup and comment
2024-04-07 16:41:35 -04:00
98f0bbd1aa
fix no executor found
2024-04-07 16:18:32 -04:00
4222ceefb5
add enter to select autocomplete
2024-04-07 16:09:00 -04:00
22a67d1573
cleanup and docs
2024-04-06 18:38:15 -04:00
29d6ee45de
improve autocomplete show/hide logic and editor selection
2024-04-05 11:45:50 -04:00
6440fd3840
add theming to autocomplete (theme, dark, light)
2024-04-05 11:20:55 -04:00
2ec8640870
Merge branch 'staging' into parser-v2
2024-04-05 10:43:25 -04:00
67eca6a50b
autocomplete positioning
2024-04-05 10:41:45 -04:00
35f2770d6e
when to show autocomplete vs info only
2024-04-05 10:41:16 -04:00
27698fd024
Add ability to get model name with /model
2024-04-03 00:52:30 +03:00
3b545a7ab1
use /run to call closures and no arguments on immediate closures
2024-04-02 12:47:11 -04:00
cba2140152
Merge branch 'staging' into parser-v2
2024-04-02 09:02:59 -04:00
9838ba8044
#1994 Add Cohere as a Chat Completion source
2024-04-02 00:20:17 +03:00
3331cb6491
Add ability to temporarily override response length for /gen and /genraw
2024-03-31 21:02:38 +03:00
ad4269f476
Add system prompt to /genraw command
2024-03-31 19:42:12 +03:00
c2ddfdb85d
make floating auto-complete follow horizontal scrolling
2024-03-31 11:01:20 -04:00
b4ad798e77
set isForced to true on input
2024-03-31 07:51:02 -04:00
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
bd62c2fb70
Add 'as' argument for /gen command
2024-03-30 18:13:55 +02:00
21480862f5
add ctrl+space to force autocomplete menu
2024-03-29 08:42:05 -04:00
fcdd90cec4
Adjust last prompt line of quite gens
2024-03-28 21:51:02 +02: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