Uses 911K of libraries. Click here for Pure Java version (9648L/50K).
!7 cmodule GBigInput > DynBigInputAndSections { start { dm_useLocalMechListCopies(); maximizeSingleSection = false; } void makeSections_impl { S text = trim(this.text); // Contains double arrow? Offer to add as Gazelle rule if (containsDoubleArrow_raw(text)) addComponent(stack, jSection("Add as raw rule", jbutton("Add as raw rule", rThread { dm_gazelle_addRuleWithComment(text, "") }))); if (isSingleLine(text)) { // Search for mech list names LS l = scoredSearch_localMechListNames(text); if (nempty(l)) addComponent(stack, jSection("Mech List Names", jPreferHeight(100, jlist(l)))); } } }
Began life as a copy of #1022774
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1022787 |
Snippet name: | Big Input with Gazelle & other intelligent actions |
Eternal ID of this version: | #1022787/9 |
Text MD5: | db6ea4527445efd4450f2372f9652615 |
Transpilation MD5: | 0da1ae1567ab87651f1aff171970d648 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-04-07 22:49:59 |
Source code size: | 739 bytes / 28 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 273 / 538 |
Version history: | 8 change(s) |
Referenced in: | [show references] |