edbrowse-dev - development list for edbrowse
 help / color / mirror / Atom feed
* [edbrowse-dev] toggle play
@ 2018-04-27 10:47 Karl Dahlke
  0 siblings, 0 replies; only message in thread
From: Karl Dahlke @ 2018-04-27 10:47 UTC (permalink / raw)
  To: edbrowse-dev

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

The latest push is an experiment with a couple toggle commands, nothing set in stone here.

swrap was clunky to type, and used all the time, so I reverted back to sw, search with wrap, and also sw+ and sw-.
So if a script knows you will want search with wrap enabled

sw+

this also has the advantage that the absolute commands don't print any output, and you usually don't want a lot of output from your running script.
The toggle version sw still prints the message because you might not remember where you were, you might want it to tell you search with wrap or search without wrap.
This is a general pattern.
This was my vision 20 years ago: edbrowse tells you what you need to know and nothing more.

Another one implemented is js+ and js-,
because I have a number of functions that specifically want javascript, or don't want javascript, and you probably do too.

If we like this style I can implement the rest.
It's pretty much boiler plate programming.

Karl Dahlke

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-04-27 10:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-27 10:47 [edbrowse-dev] toggle play Karl Dahlke

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