summaryrefslogtreecommitdiff
path: root/sys/src/cmd/mothra/mothra.c
AgeCommit message (Collapse)Author
2022-04-06mothra: enable mousewheel scrolling in history listphil9
In the history list, scrolling was only possible using the scrollbar but not the mousewheel like in the text panel.
2021-06-12mothra: read the content-type header over file(1) to determine type (thanks ↵Ori Bernstein
james palmer) this fixes some pages being classified as xml by file(1), meaning they would be rendered as plain text rather than as html.
2021-03-02mothra: "d": use lite version, disable redirectSigrid
2021-03-02mothra: add "d" command to search for a text on the internet (using duckduckgo)Sigrid
2021-02-16mothra: tune up entry control logic for easier text editingSigrid
2021-01-19mothra: resolve urls on middle click. helps with snarfing of relative urlsSigrid
2020-04-28facelift for mothra: flat ui is in.Ori Bernstein
Remove false 3d, add borders for visual separation between content area and navigation area.
2020-04-21mothra.c: add Plumb menu item, and update man page. my original changes ↵stanley lieber
sanity-checked by Ori_B.
2020-03-10improve usage messages (thanks henesy)Ori Bernstein
Fix inconsistencies between programs and their usage messages, correct instances where information seems to be missing or lost. This includes missing arguments, making usage consistent with manuals, and so on.
2018-06-27Persist 'k' command in mothra and add matching -k flag (thanks piroko)23hiro
"I sometimes find myself on either slow or data-capped network links where downloading images isn't ideal. Attached is a simple patch to mothra that changes the 'k' command to not only remove already-downloaded images from a page, but also toggle a state such that mothra won't attempt to download images on future visited sites until 'k' is toggled again. This also adds a '-k' flag to mothra which enables the flag at startup." --Jeremy O'Brien<neutral@fastmail.com> on 9fans
2016-10-22mothra: avoid flushimage() calls, event() will implicitely flushcinap_lenrek
2015-09-03mothra: subscript and superscript supportcinap_lenrek
2015-08-01mothra: enable compiler warnings and type checking, cleanupcinap_lenrek
2015-08-01mothra: fix double button hitcinap_lenrek
dolink() was hitting the button a second time!
2015-08-01mothra: cleanup url handlingcinap_lenrek
2015-08-01mothra: fix selurl()cinap_lenrek
2015-08-01mothra: support for inline images and <image> tagcinap_lenrek
2015-03-27mothra: remove unused confirmcurs; move confirmcursor up with the other cursors.ethan
2015-02-08mothra: add side scrolling, controlled by left and right buttons on the ↵stanley lieber
keyboard. if desired, x-scrollbar can be set visible via the visxbar variable in mothra.c. (thanks, jpm_)
2015-01-31mothra: people do not like it. revertingcinap_lenrek
2015-01-31mothra: wrap long text and images to fitcinap_lenrek
2014-02-05fix wrong type for terminating nil argument for execl()cinap_lenrek
we have to use (void*)0 instead of (int)0 otherwise the upper bits are uninitialized on amd64.
2014-02-05mothra: better handling of malformed search regexcinap_lenrek
2014-02-05mothra: dont panic on invalid regular expression in searchboxcinap_lenrek
2013-12-31mothra: mouse scrollwheel behave the same as in samstanley lieber
2013-12-28mothra: add regular expression text search (thanks mischief, sl)cinap_lenrek
this works differently from mischiefs original patch. instead of overloading the address bar, we popup our own enter box. the function can be invoked from the menu or by hitting ^F.
2013-12-07mothra: remove debug code, dont create $home/lib/mothra/mothra.err filecinap_lenrek
2013-10-10mothra: handle <input type=image>cinap_lenrek
2013-10-04mothra: avoid intermediate rc shell processes, use rfork(RFREND) to isolate ↵cinap_lenrek
rendezvous group
2013-10-04mothra: run page in own note group, close unneeded filedescriptors after forkingcinap_lenrek
running page in own note group avoids killing it when we exit mothra. copypaste dupfds() function from page and use it to close unneeded file descriptors.
2013-09-24fix null dereference crash in mothrajpathy
2013-07-18mothra: use pldraw() to put cmd box on screen for alt displaycinap_lenrek
the cmd box is not part of the alt display hirarchy. for command typing to show the box in alt display, we call pldraw() on it in eresized() to initialize its cmd->b image so it knows where to draw itself on typing.
2013-07-18mothra: restore usage fix, document -a option in manualcinap_lenrek
2013-07-18mothra: add -a flag to start in alt-display modecinap_lenrek
2013-07-17mothra: fix usagestanley lieber
2013-05-27mothra: clicking on the url scroll bar, snarfing, or saving a hit when no ↵ppatience0
urls have been loaded (right after running mothra) would crash. this was due to use of w->url and selection when they are actually nil. to fix this, make genwww return 0 if w->url is nil and output an error message when attempting to access selection if it's nil. the problem with the w->url fix is that after clicking on the url scroll bar, an empty url history row could be highlighted by clicking on it. fix this by making sure lp->lo is not less than zero.
2012-09-26mothra: fix url snarfingcinap_lenrek
2012-09-26mothra: display url is page list if no title is availablecinap_lenrek
2012-09-26mothra: never snarf the "Go:" boxcinap_lenrek
2012-09-26mothra: dont make all images into links (only in mothmode)cinap_lenrek
2012-09-24mothra: various improvementscinap_lenrek
* disallow snarf on password entries * remove current title label as it is displayed in the page list (redundant) * avoid redrawing page list just to update the title * check if the chan changed for backup bitmap in pl_rtdraw()
2012-09-23mothra: snarf and pastecinap_lenrek
2012-09-22mothra: text selection 2nd attemptcinap_lenrek
2012-09-22mothra: first attempt on text selectioncinap_lenrek
2012-08-09mothra: avoid eenter deadlock on resizecinap_lenrek
2012-07-31mothra: make emalloc zero memory, fix uninitialized nextline pointer crashcinap_lenrek
2012-07-20mothra: delayed screen updates to reduce flickercinap_lenrek
2012-07-04mothra: scrollbar mouse grab in alt displaycinap_lenrek
2012-06-30mothra: fix scrollbar mouse grab behaviourcinap_lenrek
by default, scrollbars captured the mouse unless all mouse buttons where released. this makes sense in mothra main window, but makes drop down menus with scrollbar unusable. the patch lets one select the behaviour using the USERFL-flag. if set, the scrollbar will capture the mouse. if not set, scrollbar will release the mouse when outside the scrollbar rect.
2012-06-18mothra/webfs: multipart/form-data and file upload supportcinap_lenrek