[PATCH] Improvement to switch between windows

2022-09-02 Thread Guillermo E. Martinez
This patch is meant to use a partial string to refer a screen windows name to switch between windows, doing so is useful if you just remember a word or letters of the windows name for that you want to switch using the standard input methods/short cuts * src/process.c (WindowByName): Use of

Re: [PATCH] Improvement to switch between windows

2022-09-02 Thread Guillermo E. Martinez
Hello David, Thanks so much for your comments, and sorry for late reply. On 6/30/22 20:52, david kerns wrote: I would recommend you check for an exact match first, then if that fails, try the partial. hmmm, I think that is already done in the lines above: if (!strcmp(p->w_title

Re: [PATCH] Improvement to switch between windows

2022-07-01 Thread Guillermo E. Martinez
On Thursday, June 30, 2022 8:52:34 PM CDT david kerns wrote: Hello David, Thanks for your comments! > I would recommend you check for an exact match first, then if that fails, > try the partial. Actually it is already done by: for (p = windows; p; p = p->w_next) if (!strcmp(p->w_title, s))

Re: [PATCH] Improvement to switch between windows

2022-06-30 Thread david kerns
I would recommend you check for an exact match first, then if that fails, try the partial. On Thu, Jun 30, 2022 at 5:51 PM Guillermo E. Martinez < guillermo.e.marti...@oracle.com> wrote: > Hello GNU screen developers! > > This patch could help to move beetween screen windows. WDYT? > > Thanks in

[PATCH] Improvement to switch between windows

2022-06-30 Thread Guillermo E. Martinez
Hello GNU screen developers! This patch could help to move beetween screen windows. WDYT? Thanks in advance!, guillermo --- This patch is meant to use a partial string to refer a screen windows name to switch between windows, doing so is useful if you just remember a word or letters of the windo