git: 9front

Download patch

ref: 672d5efc9db08bbfcdbee5c629dd713f12e23211
parent: aedd867aaf9127863bc438d6fcbf1e20bfdb747c
author: stanley lieber <stanley.lieber@gmail.com>
date: Fri Sep 23 07:04:08 EDT 2011

mothra: add keyboard command a to collapse/expand navigation boxes

--- a/sys/man/1/mothra
+++ b/sys/man/1/mothra
@@ -93,7 +93,10 @@
 .PD
 .PP
 The typed commands are:
-.TF save\ back
+.TF typed\ commands
+.TP
+.B a
+Collapse or expand the navigation boxes at the top of the browser window.
 .TP
 .BI g " url
 Get the page with the given URL.
--- a/sys/src/cmd/mothra/mothra.c
+++ b/sys/src/cmd/mothra/mothra.c
@@ -524,6 +524,11 @@
 	default:
 		message("Unknown command %s, type h for help", s);
 		break;
+	case 'a':
+		s=arg(s);
+		if(*s == '\0' && selection)
+			hit3(3, 0);
+		break;
 	case 'g':
 		s=arg(s);
 		if(*s=='\0'){
--