[9fans] sam label and rio snarf buffer

2021-07-20 Thread adr via 9fans
Hi, I changed the last patch so sam wont change the label at startup. I added a new option '-l' to set the label, it's more flexible and doesn't chage the normal behavior. If samriosnarf is in /env, sam will use rio's snarf buffer instead of the internal one. This patch should apply to 9legacy,

Re: [9fans] sam label and rio snarf buffer

2021-07-20 Thread Skip Tavakkolian
what problem did this fix for you? all the changes seem like bad ideas for general use; e.g. would hiding a sam window show a name other than sam? regarding snarf, couldn't you get what you need by manipulating the namespace with an rc script wrapper? > I changed the last patch so sam wont change

Re: [9fans] sam label and rio snarf buffer

2021-07-20 Thread adr via 9fans
On Tue, 20 Jul 2021, Skip Tavakkolian wrote: what problem did this fix for you? all the changes seem like bad ideas for general use; e.g. would hiding a sam window show a name other than sam? This is for using different instances of sam... Is not for your "general use". I've explained this bef

Re: [9fans] sam label and rio snarf buffer

2021-07-20 Thread Skip Tavakkolian
I just realized there was another (earlier) thread on this with similar questions; didn't mean to be badgering you. On Tue, Jul 20, 2021 at 12:23 PM adr via 9fans <9fans@9fans.net> wrote: > > On Tue, 20 Jul 2021, Skip Tavakkolian wrote: > > what problem did this fix for you? > > > > all the change

Re: [9fans] sam label and rio snarf buffer

2021-07-20 Thread adr via 9fans
I don't want to add noise to the list, but it seem that some people are confused about what I'm doing with this. You start in rio to work in some project. You open sam in a big window because all the files will be opened inside. You start opening files and changing the focus using the menu, and t

Re: [9fans] sam label and rio snarf buffer

2021-07-20 Thread Stuart Morrow
You'll need to reinvent (or change, at least) plumbing if you want multiple editors, be it one per file or one per project. -- 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Tc809ad6007ccd2bd-Mfc05d179050f78c209653739 Delivery options: http

Re: [9fans] sam label and rio snarf buffer

2021-07-20 Thread adr via 9fans
On Tue, 20 Jul 2021, adr via 9fans wrote: buffer. I can't identify the file I'm editing using winwatch or the menu when hidden, and so on. Oh my... is "I can identify..." and I wanted to make things clear... -- 9fans: 9fans Permalink: https://9fans.topi

Re: [9fans] sam label and rio snarf buffer

2021-07-20 Thread Peter Mikkelsen
Have you seen ptrap(4) in 9front? tir. 20. jul. 2021 23.30 skrev Stuart Morrow : > You'll need to reinvent (or change, at least) plumbing if you want > multiple editors, be it one > per file or one per project. -- 9fans: 9fans Permalink: https://9fans.top

Re: [9fans] sam label and rio snarf buffer

2021-07-20 Thread Ethan Gardener
On Tue, Jul 20, 2021, at 10:27 PM, Stuart Morrow wrote: > You'll need to reinvent (or change, at least) plumbing if you want > multiple editors, be it one > per file or one per project. I used to use one plumber per project window, where a project window was either an instance of acme or a subrio

Re: [9fans] sam label and rio snarf buffer

2021-07-20 Thread Stuart Morrow
> Have you seen ptrap(4) in 9front? Yes, Ori mentioned it in 0intro, the Plan 9 podcast -- 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Tc809ad6007ccd2bd-M9582240260310aa609582fc5 Delivery options: https://9fans.topicbox.com/groups/9fans

Re: [9fans] sam label and rio snarf buffer

2021-07-20 Thread ori
Quoth Stuart Morrow : > You'll need to reinvent (or change, at least) plumbing if you want > multiple editors, be it one > per file or one per project. You can also run a nested plumber in a subrio, which is what I do for work -- I open a rio with a plumber that has work-specific rules, along with

Re: [9fans] sam label and rio snarf buffer

2021-07-20 Thread adr via 9fans
You'll need to reinvent (or change, at least) plumbing if you want multiple editors, be it one per file or one per project. I'll make sam create allways the named pipe with the pid in the name so I can identify wich one I want to talk with. There are a lot of possibilities. ---

Re: [9fans] sam label and rio snarf buffer

2021-07-20 Thread Lucio De Re
On 7/21/21, adr via 9fans <9fans@9fans.net> wrote: >> You'll need to reinvent (or change, at least) plumbing if you want >> multiple editors, be it one >> per file or one per project. > > I'll make sam create allways the named pipe with the pid in the > name so I can identify wich one I want to tal

Re: [9fans] sam label and rio snarf buffer

2021-07-21 Thread hiro
> Will cooperation come back to rescue this planet, or will it be too > late? I suppose if one omits human exceptionalism, Nature will triumph > by default. But it's going to hurt like hell! works on my 9front -- 9fans: 9fans Permalink: https://9fans.topic

Re: [9fans] sam label and rio snarf buffer

2021-07-23 Thread adr via 9fans
In case someone was playing with this, last patch was really naive (and buggy). I tried different approaches while learning more about how the two parts of the editor interact with each other and after some back-and-forths it's working now. I enabled again the menu item when samriosnarf is defin

Re: [9fans] sam label and rio snarf buffer

2021-07-23 Thread umbraticus
> I've to think about the plumber and the the named pipe to be able > to plumb a file and bring to the front a sam instance if it has > the file open, moving the file's window to the front with dot set at > the address, if one is given. I have this: diff -u /sys/src/cmd/samterm/plan9.c ./plan9.c