From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 20940 invoked from network); 24 Aug 2022 17:27:44 -0000 Received: from 9front.inri.net (168.235.81.73) by inbox.vuxu.org with ESMTPUTF8; 24 Aug 2022 17:27:44 -0000 Received: from mail-pf1-f175.google.com ([209.85.210.175]) by 9front; Wed Aug 24 13:26:14 -0400 2022 Received: by mail-pf1-f175.google.com with SMTP id y127so14168774pfy.5 for <9front@9front.org>; Wed, 24 Aug 2022 10:26:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:from:to:cc; bh=T80fh+2+ikUZI8EnYO2kudoYiJ+vt28o7ePainT16So=; b=WHMG7Ka0JVqhK2PVHc+bqfkg+vH/9PwGmTskFEMvpSQ1bQWDA17vLeVvXcOn1NQ7+y yjFYaBFLunk3B+Sda2Ka0mAFz1gtwsQbC6RDJ4V49fgg/xSqZ0lG9fV7HXAHDjRhDDc7 wm1QBAPMqLbzhniovRYv9ZAIS2cyNL93UAJa7HOxCSIIElScHwi9jS2t7T8n1nWmP6FD GKOGc7TvbCGPLbMwkXe8Xv2WpcGFBzi6zIugMuEX81ppxTu4UwFRMVqsaY81NcGk08uL frCAgVVt5fFnA0gFCSrfHc3WHgH47TCyBV0AU/QVhpPD5VqruE/MF88bOnf8pe7dS8oG qwAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=message-id:in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:x-gm-message-state:from:to:cc; bh=T80fh+2+ikUZI8EnYO2kudoYiJ+vt28o7ePainT16So=; b=qxjXfAiSBDZCq6bMFU3fF5EfLa+kXe+fVVtApRRkRciL6yg6iMvze4CNM9ekDqYO7o dzO1CXJdGGe2KK9W3vVw1zAojm8obWOdXSjpQZ/snj7CN+Z0jp6q1Vl/ZF1OgQRFLeKO /X16oK0S14pFJxkEgyI4f/CMTshSWRYtx7UfcYzTzuxl9XROh2s2OMapaaj4NN8oqoXn tDrp9GGyvILuMys/5roaCVzPKryGsDS97Eeq4p64tcCAAAlIrIPLAsResOUpagiKNzr/ hqSADAI1jU69iK+vYpaezfB/aRPE7L6sIjs3u6DxlHHmyLzW/zMOgIxOu1yi97gTcAOS Ya4g== X-Gm-Message-State: ACgBeo1MV1i1wJdmxw3nXu2ch0+MSGylQziQWC3CTJOZwODikGJTgH1Q 1B9GLArxxSTfPIcL1MaKhQUL7AG+qvY= X-Google-Smtp-Source: AA6agR70630UnP8bL5uzOJAJkgKeVmX8xAvg1HMt8otTOKOTm90aOHz3y3elUEQnAO3XPcLSUg3FRQ== X-Received: by 2002:a63:86c6:0:b0:42b:329d:de3f with SMTP id x189-20020a6386c6000000b0042b329dde3fmr30794pgd.258.1661361970316; Wed, 24 Aug 2022 10:26:10 -0700 (PDT) Return-Path: Received: from smtpclient.apple ([104.246.155.195]) by smtp.gmail.com with ESMTPSA id w196-20020a627bcd000000b00535bf24008asm13214763pfc.207.2022.08.24.10.26.09 for <9front@9front.org> (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Aug 2022 10:26:09 -0700 (PDT) From: Michael Misch X-Google-Original-From: Michael Misch Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Date: Wed, 24 Aug 2022 10:26:08 -0700 References: <631466AA07BC8296AF8BDD0EBF0627FD@wopr.sciops.net> To: 9front@9front.org In-Reply-To: Message-Id: <21D5362C-4E8B-4EBE-A9F6-A698796FD637@gmail.com> X-Mailer: Apple Mail (2.3696.120.41.1.1) List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: distributed encrypted callback realtime map/reduce strategy Subject: Re: [9front] [PATCH] programmable menus for rio Reply-To: 9front@9front.org Precedence: bulk I really like the concept for this type of menu. Being able to extend = behaviours, without it being clunky is a hallmark feature of Acme, for = example. This same mindset being extended outwards into Rio where it has = been considerably more rigid in adhering to the designed usage from the = outset, enables things that may not have been conceived or considered in = the 90s and early 2000s when these designs were laid. > On Aug 24, 2022, at 06:38, Jacob Moody = wrote: >=20 > On 8/24/22 01:05, qwx@sciops.net wrote: >> On Wed Aug 24 07:01:48 +0200 2022, moody@mail.posixcafe.org wrote: >>> On 8/23/22 20:46, ori@eigenstate.org wrote: >>>> Quoth Jacob Moody : >>>>> Something I've been playing with is a way of exposing part of the = rio >>>>> menu to the programs running within it. This is a bit of a simple >>>>> approach, but I would like to gauge interest that people have in >>>>> something along these lines before continuing. >>>>>=20 >>>>> This adds a /dev/menu file that can be written to >>>>> to add new entries to the button3menu. The file >>>>> can be read to get the text string of an added >>>>> menu entry when hit by the user. >>>>>=20 >>>>> Thanks, >>>>> moody >>>>>=20 >>>>=20 >>>> It seems like an interesting trick -- but, the >>>> programs that might use it would already likely >>>> be graphical, no? >>>>=20 >>>=20 >>> Switching languages via special character in ktrans >>> doesn't feel quite right to me. I wanted a graphical >>> way of switching them, and it seemed like something >>> I wanted on the rio menu. >>=20 >> This is interesting. umbraticus and I experimented with adding menu2 >> entries in sam for commands we use all of the time. Initially I = tried >> doing this with menu entries for adding/removing items, but it was >> horrible. umbraticus proposed defining a new sam command `M' which >> adds or removes a menu entry: as an example, `M ^R mk install' would >> add `^R mk install' verbatim to the menu (R being some sam script), >> and sending this again would remove it. We both have scripts which >> define a bunch of rc functions to use within sam, which also works = for >> adding stuff at the start of a session. Then, while using sam, one >> can add or remove commands one ends up using a whole bunch during a >> session instead of switching to the command menu, finding, selecting >> and sending them, which happens way too often for me (for example, >> things like `|fmt -l 80', `|cmd |awk ...' or `!window -m -cd ... >> cmd', etc.). This works very nicely in my case. >>=20 >=20 > I would 100% be behind bringing this sam work upstream. > That is quite neat. >=20 >> For rio, it's a bit different, and I don't know how it would work out >> or what the best interface would be, but I think it's worth >> discussing. >=20 > Yeah I'm not sure what the right solution here, I'm just throwing > out code to start the conversation. >=20 > - moody