9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: 刘宇宝 <liuyubao@yingmi.cn>
To: "9fans@9fans.net" <9fans@9fans.net>
Subject: Re: [9fans] What are you using Plan 9 for?
Date: Sun, 24 Jun 2018 08:22:47 +0000	[thread overview]
Message-ID: <BJXPR01MB027765197512BDAABB7680EDD44B0@BJXPR01MB0277.CHNPR01.prod.partner.outlook.cn> (raw)
In-Reply-To: <1529593878.3612180.1415740504.2BF0C5B8@webmail.messagingengine.com>

[-- Attachment #1: Type: text/plain, Size: 6034 bytes --]

> I'd also add ctrl-x/c/v, and perhaps a prefix key to enter control codes.

> (I guess alt-x nnnn works already, but I know the keys.)

Some days ago I wanted to input "\r" in Rio term window, spent about half an hour to figure out what the prefix key was, or some special syntax in rc,  finally I gave up,  used "Ctrl-m" instead.

Regards,
Yubao Liu

________________________________
From: 9fans-bounces@9fans.net <9fans-bounces@9fans.net> on behalf of Ethan A. Gardener <eekee57@fastmail.fm>
Sent: Thursday, June 21, 2018 11:11 PM
To: 9fans@9fans.net
Subject: Re: [9fans] What are you using Plan 9 for?

On Thu, Jun 21, 2018, at 8:20 AM, Mart Zirnask wrote:
> On 21/06/2018, Ethan A. Gardener <eekee57@fastmail.fm> wrote:
> >... I no longer have a desk of
> > the right proportions to make mouse use comfortable, and can no longer bend
> > over a laptop for hours on end, (a Thinkpad with 3 buttons,) text editing in
> > Plan 9 has become unpleasant. I could patch Samterm and Rio to make it more
> > comfortable, but it's not worth it.
>
> Would you mind elaborating on these ideas?

Not at all. The first thing I would do is make it so Samterm keeps Sam's snarf buffer in sync with Rio's. I know it's sometimes useful to have the two separate buffers, but I so often want to copy between the editor and other windows that for me, it's an immense pain. An alternate, possibly better idea would be to add commands to Sam, equivalent to >cat>/dev/snarf and <cat</dev/snarf . I've only just thought of those commands, I think I'd try to implement them first, because synchronizing the snarf buffers is not entirely straightforward (if I remember right,) and menus...

Menus! Grarrr I hate you, go away! Not entirely, I like them when they remind me of stuff, but every time I use one I have to Stop. And. Look. At. It. Not wonderful when wanting to get on with the job, or to not lose my focus. It matters less now I'm trying to relax, but I have experienced pie menus and found them a brilliant solution to exactly this problem, up to a point.

I would not want to jam window lists (Sam's or Rio's) into an infinite series of pie menus because, speaking from experience, nesting pie menus beyond two levels more than negates the benefits. Given that I'd normally have pie menus with 8 elements, for the button-3 menus of both programs I'd have 5 elements in a semi-circle attached to the side of a normal vertical menu containing the window list. (It would have to warp the pointer so it comes up in the center of the pie (or half-pie), there's no point making a pie if it doesn't do that.)

I'd also add ctrl-x/c/v, and perhaps a prefix key to enter control codes. (I guess alt-x nnnn works already, but I know the keys.)

I think that's all my actual requirements for making Sam comfortable. It's window management is a little fussy, but it doesn't annoy me the way Acme's can. Acme makes assumptions about workflow which are only rarely valid in my usage, and I can't see how to improve it without scrapping its entire window system premise, and starting again. Sam might be improved with a simple paned arrangement, but not like acme in that the panes are relatively fixed. Still, I prefer overlapping windows on a small screen, despite the extra fuss of managing them. With the way my eyesight is going, that might soon be any screen. (That reminds me, I never did get around to porting ESpeak to Plan 9. It's supposedly C++, but IIRC the only actual C++ was in the RiscOS-specific parts. I remember very C-like code, anyway.)

Almost forgot: I also had an idea for a second control window for Sam. The idea is that you enter commands into it, but they're not executed immediately. Instead, when you button-2 click, the entire line is executed. In Acme, I found myself frequently re-using commands. This would make that easy in Sam too -- or easier, rather. You can already snarf and send, but snarfing isn't so quick -- see above. 9front added chording to Samterm, but it's not reliable when I use it; needs a bit of fixing.


Speaking of menus reminding me of stuff, sometimes I lc /bin/games to remind me what games exist, which was my primary use for a launcher menu in Linux. I don't play many of them often. I like Plan 9's hierarchical /bin. It's a shame it's not very simple to union mount more than one level in Plan 9.

>
> Something I've been thinking along the same lines:
> Inferno's shell allows one to add custom buttons to a shell window.
> See more here:
> http://debu.gs/entries/interlude-inferno-at-work

A fun idea. :) Acme is similarly flexible, of course, and my Forth junk definitely will be.

Remarking on parts of that article:

"After that, starting up Inferno and hitting command-F (to run Inferno full-screen) makes the Mac look like an Inferno terminal. Perfect! I can lie to myself about what’s actually running on the computer."
This is what I did with my Mac. :) I don't hate its native interface but it is a bit dumb. Before I ever started using Plan 9 on it, I tried Linux but it was more hassle than necessary, and some hardware didn't work. I put OS X back on, (10.4, one of the best versions,) used its control panel, wifi setup, and nothing else except the X server full-screen. It was the best of both worlds, I loved it! :) Later, I variously ran Inferno, P9P Acme, and drawterm full-screen, usually with an external mouse. (It doesn't do multi-touch.)

>
> This could be used to add shortcuts to common/more complicated text
> editing tasks in Inferno's sh + sam -d.
> I'm not sure if this would free one from using a 3-button mouse, though.

Didn't someone praise modern trackpads in this thread? In the dim and distant past, (at least a whole year ago,) I recall a multitouch patch appearing for P9P. I think it entirely eliminated the need for a 3-button mouse. I'm sure it could be reasonably applied to Inferno, and to Drawterm if it hasn't already.

--
I regret nothing except my new-found capitalization policies.


[-- Attachment #2: Type: text/html, Size: 9494 bytes --]

  reply	other threads:[~2018-06-24  8:22 UTC|newest]

Thread overview: 59+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-11  6:14 刘宇宝
2018-06-12 14:57 ` 刘宇宝
2018-06-14  2:53 ` N. S. Montanaro
2018-06-14  3:53   ` 刘宇宝
2018-06-14  5:17     ` Lucio De Re
2018-06-14 21:12       ` hiro
2018-06-15  0:57         ` 刘宇宝
2018-06-15  2:24           ` N. S. Montanaro
2018-06-15 11:44           ` hiro
2018-06-16 13:39     ` Ole-Hjalmar Kristensen
2018-06-16 15:26       ` Jerome Ibanes
2018-06-21  9:06     ` Rui Carmo
2018-06-21  9:53       ` dexen deVries
     [not found]       ` <BJXPR01MB0277C36675F3F1EA52FC46EAD44B0@BJXPR01MB0277.CHNPR01.prod.partner.outlook.cn>
2018-06-26  3:24         ` 刘宇宝
2018-06-26  6:36           ` Tyga
2018-06-27 19:10             ` Ethan A. Gardener
2018-06-27 18:45           ` Ethan A. Gardener
2018-06-14  9:46 ` Tyga
2018-06-14 14:22   ` Steve Simon
2018-06-14 16:15     ` tlaronde
2018-06-14 17:23       ` hiro
2018-06-14 17:45     ` Daniel Camoles
2018-06-15  6:13       ` Mart Zirnask
2018-06-15 13:51         ` Lucio De Re
2018-06-15 14:26           ` hiro
2018-06-15 16:03             ` Mart Zirnask
2018-06-15 17:47             ` Lucio De Re
2018-06-15 19:02         ` Mark van Atten
2018-06-15 23:58           ` Iruatã Souza
2018-06-16  9:35             ` tlaronde
2018-06-18  8:35             ` Mark van Atten
2018-06-14 21:20   ` hiro
2018-06-20 21:35 ` Ethan A. Gardener
2018-06-21  3:58   ` Lucio De Re
2018-06-21  4:49     ` Bakul Shah
2018-06-21 16:02       ` Ethan A. Gardener
2018-06-21 15:23     ` Ethan A. Gardener
2018-06-21 18:03       ` Bakul Shah
2018-06-25  9:33         ` Ethan A. Gardener
2018-06-26  5:17           ` 刘宇宝
2018-06-27 19:01             ` Ethan A. Gardener
2018-06-26 21:03           ` Bakul Shah
2018-06-21  5:39   ` Kurt H Maier
2018-06-21 16:39     ` Ethan A. Gardener
2018-06-21 20:18     ` Skip Tavakkolian
2018-06-28  9:57       ` Richard Miller
2018-06-27  5:18     ` Iruatã Souza
2018-06-28  2:04       ` Tyga
2018-06-21  7:20   ` Mart Zirnask
2018-06-21 15:11     ` Ethan A. Gardener
2018-06-24  8:22       ` 刘宇宝 [this message]
2018-06-15  8:16 cinap_lenrek
     [not found] <1740027127.295380.1529081094082.ref@mail.yahoo.com>
2018-06-15 16:44 ` Brian L. Stuart
2018-06-15 18:16   ` Mark van Atten
     [not found] <1401313358.335074.1529087916083.ref@mail.yahoo.com>
2018-06-15 18:38 ` Brian L. Stuart
     [not found] <135406475.3232013.1530116414782.ref@mail.yahoo.com>
2018-06-27 16:20 ` Brian L. Stuart
2018-06-28  2:06   ` Tyga
2018-06-28  7:22     ` Mart Zirnask
2018-06-28 18:47       ` Bakul Shah

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BJXPR01MB027765197512BDAABB7680EDD44B0@BJXPR01MB0277.CHNPR01.prod.partner.outlook.cn \
    --to=liuyubao@yingmi.cn \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).