summaryrefslogtreecommitdiffstats
path: root/src/cmd/acme
Commit message (Collapse)AuthorAgeFilesLines
* acme: add focus change to logSergiusz Urbaniak2015-06-031-0/+6
| | | | | | | | | | | | | Currently new, put and del events are being logged. This patch adds a focus event to the log whenever the user changes the focus to another window. This lets programs react to files being edited in acme without the need of being restarted. Change-Id: Idf35c0d7dbfca30e79724dc9f49e44c6a4eb6a1e Reviewed-on: https://plan9port-review.googlesource.com/1140 Reviewed-by: Russ Cox <rsc@google.com>
* libdraw, libframe, acme: fix, guard against inverted range in textsetselectRuss Cox2014-12-021-3/+9
| | | | | | | | | | Credit to Roi Martin <jroi.martin@gmail.com> for noticing that libdraw was being passed a negative string length and for finding the sequence of keystrokes that make acme do it reproducibly. Change-Id: If3f3d04a25c506175f740d3e887d5d83b5cd1bfe Reviewed-on: https://plan9port-review.googlesource.com/1092 Reviewed-by: Russ Cox <rsc@swtch.com>
* acme: fix bufread crash due to typing-point scrollingRuss Cox2014-06-031-0/+4
| | | | | | | | | | | | | | | | | | | | Acme tracks the most recent typing insertion point and the home and end keys stop there on their way up to the top or down to the bottom of the file. That point should be iq1, and it should be adjusted properly so that it's always between 0 and t->file->b.nc inclusive. (This is all code from an external contributor, years old at this point but new since Plan 9.) Somehow, sometimes iq1 ends up a little beyond b.nc, and when passed to textbacknl it crashes acme in bufread. I can't see how that can happen but if it does, avoid the crash. It's tempting to pull the insertion point code out entirely but this is a little less invasive and should fix things for now. TBR=rsc https://codereview.appspot.com/107730043
* acme: increase timer resolution to 10msRuss Cox2014-06-031-1/+1
| | | | | | | | | | | | | | | | We ran for a long time with 10ms kernel resolution, so 10ms user space resolution here should be fine. Some systems actually provide 1ms sleeps, which makes this polling use a bit more cpu than we'd like. Since the timers are for user-visible things, 10ms should still be far from noticeable. Reduces acme's cpu usage on Macs when plumber is missing (and plumbproc is sleeping waiting for it to appear). LGTM=aram, r R=r, aram https://codereview.appspot.com/99570043
* undo CL 69070045 / 8539a916d98aRuss Cox2014-05-191-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | This breaks ^C in win windows, as expected. People use ^C, win expects and handles ^C, so I don't think we can just take it away. I've noticed that it is broken but assumed my ssh was screwed up. If you want to make WindowsKey+C,X,V do the operations, by analogy with command+C,X,V on Mac, that's fine with me. ««« original CL description acme: copy/cut/paste with ctl+c,x,v LGTM=rsc R=rsc CC=plan9port.codebot https://codereview.appspot.com/69070045 »»» TBR=rsc CC=burns.ethan, r https://codereview.appspot.com/96410045
* acme: fix two flush bugs in new log fileRuss Cox2014-05-051-2/+3
| | | | | TBR=rsc https://codereview.appspot.com/95010048
* acme: add log file in acme root directoryRuss Cox2014-04-3011-6/+236
| | | | | | | | | | | | | | | | | | | Reading /mnt/acme/log reports a log of window create, put, and delete events, as they happen. It blocks until the next event is available. Example log output: 8 new /Users/rsc/foo.go 8 put /Users/rsc/foo.go 8 del /Users/rsc/foo.go This lets acme-aware programs react to file writes, for example compiling code, running a test, or updating an import block. TBR=r R=r https://codereview.appspot.com/89560044
* acme: add comment for aligned writesRuss Cox2014-04-191-0/+5
| | | | | TBR=r https://codereview.appspot.com/89510044
* acme: use buffered i/o to write fileRuss Cox2014-04-191-1/+16
| | | | | | | | | | | | | | | | | | | | | | | Bakul Shah has observed corrupted files being written when acme writes over osxfuse to sshfs to a remote file system. In one example we examined, acme is writing an 0xf03-byte file in two system calls, first an 0x806-byte write and then a 0x6fd-byte write. (0x806 is BUFSIZE/sizeof(Rune); this file has no multibyte UTF-8.) What actually ends up happening is that an 0x806-byte file is written: 0x000-0x6fd contains what should be 0x806-0xf03 0x6fd-0x7fa contains zeros 0x7fa-0x806 contains what should be 0x7fa-0x806 (correct!) The theory is that fuse or sshfs or perhaps the remote file server is mishandling the unaligned writes. acme does not seem to be at fault. Using bio here will make the writes align to 8K boundaries, avoiding the bugs in whatever underlying piece is broken. TBR=r https://codereview.appspot.com/89550043
* acme: fix Get of dir in nameless window (thanks Colton Lewis)Russ Cox2014-04-181-1/+1
| | | | | TBR=r https://codereview.appspot.com/89390043
* acme: copy/cut/paste with ctl+c,x,vEthan Burns2014-03-131-0/+4
| | | | | | | LGTM=rsc R=rsc CC=plan9port.codebot https://codereview.appspot.com/69070045
* acme, sam: handle >1GB files correctlyRuss Cox2014-03-132-2/+5
| | | | | TBR=rsc https://codereview.appspot.com/74060043
* acme: scroll a directory window when navigating if:Rob Pike2013-10-221-1/+17
| | | | | | | | | - the cursor is on the last line - the navigation would put the cursor over the tag of the following text R=rsc CC=smckean83 https://codereview.appspot.com/15280045
* acme: execute commands with / using shellMarius Eriksen2013-09-061-1/+1
| | | | | | | | This allows commands in bin subdirectories. R=rsc CC=plan9port.codebot https://codereview.appspot.com/13254044
* acme Mail: add Search commandAkshat Kumar2013-09-062-1/+63
| | | | | | | | | | | Introduces the Search command for mailboxes. Arguments passed are treated as one space- separated string, passed on to mailfs' IMAP search interface. R=rsc, david.ducolombier CC=plan9port.codebot https://codereview.appspot.com/13238044
* mailfs: allow spaces in box nameAkshat Kumar2013-09-061-1/+16
| | | | | | | | | | | | | | | Mail services (such as Google Mail) will often have directories with names that contain spaces. Acme does not support spaces in window names. So, replace spaces in mail directory names with the Unicode character for visible space. The code is a bit of an over-approximation and generally non-optimal. R=rsc, david.ducolombier, 0intro CC=plan9port.codebot https://codereview.appspot.com/13010048
* acme: allow :6 in 5-line fileRuss Cox2013-07-311-0/+2
| | | | | R=rsc https://codereview.appspot.com/12162043
* acme: retina scaling for scroll bars, buttonRuss Cox2012-11-262-26/+34
| | | | | R=rsc http://codereview.appspot.com/6854094
* acme: set $samfile (same as $%) during executionMarius Eriksen2012-11-251-0/+1
| | | | | | R=rsc CC=plan9port.codebot http://codereview.appspot.com/6854092
* acme: use threadspawnd to avoid changing "." of current processRuss Cox2012-10-221-29/+8
| | | | | R=rsc http://codereview.appspot.com/6736060
* acme: add $acmeshell to control execution shellMarius Eriksen2012-10-213-2/+12
| | | | | | R=rsc CC=plan9port.codebot http://codereview.appspot.com/6614056
* fix gcc 4.7 warnings (thanks Tuncer Ayaz)Russ Cox2012-10-202-6/+2
| | | | | R=rsc http://codereview.appspot.com/6744053
* acme: correct writes of runes on auspicious byte boundariesErik Quanstrom2012-10-051-23/+34
| | | | | | R=rsc, r CC=plan9port.codebot http://codereview.appspot.com/6586067
* acme: mouse movement for DelRuss Cox2012-09-235-8/+62
| | | | | | | | | | | | | | | If the mouse was in the tag of the old window, it was most likely pointing at Del. If bringing up a new window from below and not moving the mouse somewhere else, adjust it so that it ends up pointing at Del in the replacement window's tag too. This makes it easy to Del a sequence of windows in a column, from top to bottom. http://www.youtube.com/watch?v=ET8w6RT6u5M R=r http://codereview.appspot.com/6558047
* acme: claim input focus earlierDavid Jeannot2012-01-161-2/+2
| | | | | | R=rsc CC=plan9port.codebot http://codereview.appspot.com/5505091
* acme: fix arrow near end of textSean McKean2011-11-171-6/+4
| | | | | | R=rsc CC=plan9port.codebot http://codereview.appspot.com/5399050
* devdraw: draft cocoa supportDavid Jeannot2011-09-061-0/+4
| | | | | | R=rsc CC=plan9port.codebot http://codereview.appspot.com/4974060
* acme: fix iq1 adjust bugRuss Cox2011-08-021-1/+1
| | | | | R=rsc http://codereview.appspot.com/4816066
* acme: scrolling fixes + new home/endRuss Cox2011-08-024-5/+32
| | | | | | | | | | | | | | | | | | | Home and End previously navigated between two different window locations: the top and the bottom of the text. Now they include a third waypoint: the location where typing last happened. Thus, in a win window, typing ls -l <home> scrolls to the beginning of the ls -l output. A second <home> continues to the top of the file. Makes Send scroll always, along with writes by external programs to +Errors. R=r CC=mccoyst http://codereview.appspot.com/4830051
* acme: allow :?regexp for backward searchRuss Cox2011-07-101-0/+4
| | | | | | | Fixes issue 80. R=rsc http://codereview.appspot.com/4662088
* acme: fix out of order address crashRuss Cox2011-07-101-1/+1
| | | | | R=rsc http://codereview.appspot.com/4690042
* acme Mail: drop noscrollDavid du Colombier2011-06-011-1/+0
| | | | | | R=rsc CC=plan9port.codebot http://codereview.appspot.com/4539098
* 9term, acme: autoscrollRuss Cox2011-04-273-12/+4
| | | | | | | | | | | | | | | | Ignore scroll/noscroll window setting. Instead, scroll when the write begins in or immediately after the displayed window content. In the new scrolling discipline, executing "Noscroll" is replaced by typing Page Up or using the mouse to scroll higher in the buffer, and executing "Scroll" is replaced by typing End or using the mouse to scroll to the bottom of the buffer. R=r, r2 http://codereview.appspot.com/4433060
* acme: fix rounding in rows computationRob Pike2010-08-241-3/+6
| | | | | | R=rsc CC=codebot http://codereview.appspot.com/2007045
* acme, sam: fix regexp code for bigger RunemaxRuss Cox2010-07-141-24/+26
| | | | | R=r http://codereview.appspot.com/1765042
* acme: fix off by one in editcmd, pointer comparison in getch, nextcRuss Cox2010-07-141-3/+3
| | | | | R=r http://codereview.appspot.com/868046
* acme: attempt to fix Put mtime skew on NFSRuss Cox2010-03-181-0/+13
| | | | | R=r http://codereview.appspot.com/583043
* acme: let Edit redo when file is cleanRuss Cox2010-01-121-1/+1
| | | | | | R=, rsc CC= http://codereview.appspot.com/188042
* acme: fix Load of acme with no windowsFazlul Shahriar2009-11-301-2/+2
| | | | | | R=rsc CC=codebot http://codereview.appspot.com/161048
* acme: correct modified message after initial load; more detail inRuss Cox2009-09-255-14/+29
| | | | | | message http://codereview.appspot.com/123051
* libplumb, Mail: fix crash on nil plumb fidsMathieu Lonjaret2009-09-121-3/+6
| | | | http://codereview.appspot.com/116083
* convert to 4-byte UTF-8 and 32-bit RuneRuss Cox2009-09-111-2/+2
| | | | http://codereview.appspot.com/116075
* acme: htmlclick takes precedence over line clickRuss Cox2009-09-111-3/+3
| | | | http://codereview.appspot.com/116074
* acme: angle bracket tag matching, for XML, HTML etcRuss Cox2009-07-262-0/+111
| | | | http://codereview.appspot.com/98042
* acme: do not redraw body on every tag changeRuss Cox2009-07-152-3/+4
| | | | | | | | fixes #5 http://bitbucket.org/rsc/plan9port/issue/5/ http://groups.google.com/group/plan9port-dev/t/e679347ecaa05cff http://codereview.appspot.com/95041
* mergeRuss Cox2009-07-141-0/+3
|
* src: use whatis instead of whichMichael Teichgräber2009-07-081-1/+1
|
* mergeRuss Cox2009-06-091-2/+3
|
* mergeRuss Cox2009-04-301-0/+26
|
* acme: fix Load bug (Fazlul Shahriar)Russ Cox2008-12-061-2/+3
|