summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-05-07 19:10:33 -0400
committerJune McEnroe <june@causal.agency>2021-05-07 19:29:21 -0400
commit299c4334ab7f3cabfad2ee74d441ebb2d4e27e80 (patch)
tree849ce92eec665878d7f95f0a9b80dadeb7cf518d
parentUse LDADD variables, support BINDIR (diff)
downloadscooper-299c4334ab7f3cabfad2ee74d441ebb2d4e27e80.tar.gz
scooper-299c4334ab7f3cabfad2ee74d441ebb2d4e27e80.zip
Try to keep query at end of parameters
-rw-r--r--html.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/html.c b/html.c
index aebb104..321d731 100644
--- a/html.c
+++ b/html.c
@@ -138,6 +138,8 @@ enum kcgi_err htmlNav(struct khtmlreq *html, struct kreq *req) {
 			KATTR_ACTION, Pages[Search],
 			KATTR__MAX
 		)
+		|| htmlHidden(html, req, Network)
+		|| htmlHidden(html, req, Context)
 		|| khtml_attr(
 			html, KELEM_INPUT,
 			KATTR_TYPE, "search",
@@ -145,8 +147,6 @@ enum kcgi_err htmlNav(struct khtmlreq *html, struct kreq *req) {
 			KATTR_VALUE, (query ? query : ""),
 			KATTR__MAX
 		)
-		|| htmlHidden(html, req, Network)
-		|| htmlHidden(html, req, Context)
 		|| khtml_elem(html, KELEM_BUTTON)
 		|| khtml_printf(
 			html, "Search %s",
@@ -312,8 +312,8 @@ eventNetwork(struct khtmlreq *html, struct kreq *req, struct Event *event) {
 	}
 	char *href = khttp_urlpart(
 		NULL, NULL, Pages[Search],
-		Keys[Query].name, req->fieldmap[Query]->parsed.s,
 		Keys[Network].name, event->network,
+		Keys[Query].name, req->fieldmap[Query]->parsed.s,
 		NULL
 	);
 	if (!href) err(EX_OSERR, "khttp_urlpart");
@@ -337,9 +337,9 @@ eventContext(struct khtmlreq *html, struct kreq *req, struct Event *event) {
 	}
 	char *href = khttp_urlpart(
 		NULL, NULL, Pages[Search],
-		Keys[Query].name, req->fieldmap[Query]->parsed.s,
 		Keys[Network].name, event->network,
 		Keys[Context].name, event->context,
+		Keys[Query].name, req->fieldmap[Query]->parsed.s,
 		NULL
 	);
 	if (!href) err(EX_OSERR, "khttp_urlpart");
onfig/cwm/cwmrc?id=15c361e449de20b0c07d74e764d0ced5eb1308a1&follow=1'>Set colours for Xt and cwmJune McEnroe And increase XTerm internalBorder. 2021-02-07Set urgency on bell in xtermJune McEnroe 2021-02-07Add bindings for brightness controlJune McEnroe Weirdly the Fn key doesn't change how the F row registers... I wonder if I can do something about that. 2021-02-07Set X key repeat rateJune McEnroe 2021-02-07Bump font size to 12June McEnroe 11 is what I use on macOS, but I feel like my eyes are working harder here. 2021-02-07Fully configure and rebind cwmJune McEnroe This is sort of a mix of trying to emulate macOS somewhat for my muscle memory and just rebinding some of the cwm defaults to use 4- rather than M-. 2021-02-07Add BintiJune McEnroe 2021-02-07Finish configuring xtermJune McEnroe 2021-02-06Enable tapping, reverse scroll, set scaling in wsconsctlJune McEnroe 2021-02-06Set root window to black on purple snowJune McEnroe 2021-02-06Add xmodmap configurationJune McEnroe 2021-02-06Add initial OpenBSD X configurationJune McEnroe cwm still needs a lot more rebinding, and I need to actually look at its other options. xterm definitely still needs some configuration, but I at least managed to get it to use a decent looking font. Very happy that OpenBSD includes Luxi Mono, which is what my usual font, Go Mono, is based on anyway. Still missing is xmodmap and such. 2021-02-06Add xterm output to schemeJune McEnroe