9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Acme hack
@ 2013-03-14 13:44 dexen deVries
  2013-03-14 14:38 ` yy
  0 siblings, 1 reply; 4+ messages in thread
From: dexen deVries @ 2013-03-14 13:44 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

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

I like my +Errors window clean once in a while. Attached patch provides
 Edit ,d
by default in +Errors window tagline.

-- 
dexen deVries

[[[↓][→]]]

[-- Attachment #2: 0001-acme-provide-Edit-d-in-Error-windows.patch --]
[-- Type: text/x-patch, Size: 1146 bytes --]

>From b4edef7c40de4c4a8678622e11eee8bd9aef8523 Mon Sep 17 00:00:00 2001
From: dexen deVries <dexen.devries@gmail.com>
Date: Thu, 14 Mar 2013 14:41:22 +0100
Subject: [PATCH] acme: provide Edit ,d in +Error windows

---
 src/cmd/acme/wind.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/cmd/acme/wind.c b/src/cmd/acme/wind.c
index d2bec16..5e952ed 100644
--- a/src/cmd/acme/wind.c
+++ b/src/cmd/acme/wind.c
@@ -451,6 +451,7 @@ winsettag1(Window *w)
 	static Rune Lget[] = { ' ', 'G', 'e', 't', 0 };
 	static Rune Lput[] = { ' ', 'P', 'u', 't', 0 };
 	static Rune Llook[] = { ' ', 'L', 'o', 'o', 'k', ' ', 0 };
+	static Rune Leditcomad[] = { ' ', 'E', 'd', 'i', 't', ' ', ',', 'd', 0 };
 	static Rune Lpipe[] = { ' ', '|', 0 };

 	/* there are races that get us here with stuff in the tag cache, so we take extra care to sync it */
@@ -509,6 +510,10 @@ winsettag1(Window *w)
 				runemove(new+i, Llook, 6);
 				i += 6;
 			}
+			else if (!w->filemenu){
+				runemove(new+i, Leditcomad, 8);
+				i += 8;
+			}
 			else{
 				static Rune foo[] = { ' ', 0 };
 				runemove(new+i, foo, 1);
--
1.8.1.4


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [9fans] Acme hack
  2013-03-14 13:44 [9fans] Acme hack dexen deVries
@ 2013-03-14 14:38 ` yy
  2013-03-14 14:55   ` dexen deVries
  2013-03-21 11:03   ` [9fans] Acme hack - a week later dexen deVries
  0 siblings, 2 replies; 4+ messages in thread
From: yy @ 2013-03-14 14:38 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

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

On 14 March 2013 14:44, dexen deVries <dexen.devries@gmail.com> wrote:

> I like my +Errors window clean once in a while. Attached patch provides
>  Edit ,d
> by default in +Errors window tagline.
>

Not that I have any problem with this but, isn't it easier to just Del the
window so that a new one is created when you need it?


--
- yiyus || JGL .

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [9fans] Acme hack
  2013-03-14 14:38 ` yy
@ 2013-03-14 14:55   ` dexen deVries
  2013-03-21 11:03   ` [9fans] Acme hack - a week later dexen deVries
  1 sibling, 0 replies; 4+ messages in thread
From: dexen deVries @ 2013-03-14 14:55 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On Thursday 14 of March 2013 15:38:08 yy wrote:
> 
> Not that I have any problem with this but, isn't it easier to just Del the
> window so that a new one is created when you need it?


you are right. i use Edit ,d to preserve general window layout.

i'm not happy with Acme's placement of +Errors window in my default workflow. 
in two columns, i keep one directory (project root) window, one +Errors window 
beneath it (syntax errors, upload progress †, scratchpad) and some 1...6 
source code file windows spread 'round.

btw., the patch may not apply cleanly since my p9p fork has `Look' disabled 
via if(0) {...}


-- 
dexen deVries

[[[↓][→]]]


† i'm a LAMP webdeveloper by day.




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [9fans] Acme hack - a week later
  2013-03-14 14:38 ` yy
  2013-03-14 14:55   ` dexen deVries
@ 2013-03-21 11:03   ` dexen deVries
  1 sibling, 0 replies; 4+ messages in thread
From: dexen deVries @ 2013-03-21 11:03 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On Thursday 14 of March 2013 15:38:08 yy wrote:
> Not that I have any problem with this but, isn't it easier to just Del the
> window so that a new one is created when you need it?


one week in, i've became much more cavalier about Del-ing an +Errors window, 
while still using the Edit ,d quite often.

turns out, i was affraid of having to re-type the Edit ,d in every new window.


all hail Acme,
-- 
dexen deVries

[[[↓][→]]]




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-03-21 11:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-14 13:44 [9fans] Acme hack dexen deVries
2013-03-14 14:38 ` yy
2013-03-14 14:55   ` dexen deVries
2013-03-21 11:03   ` [9fans] Acme hack - a week later dexen deVries

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).