Commit graph

35 commits

Author SHA1 Message Date
Russ Cox
43f5af9c8d acme: allow larger paste amounts 2023-01-06 12:04:17 -05:00
Russ Cox
43b0d532bd acme: add 32x32 boxcursor
The only difference from the upscaled 16x16
is a one-pixel adjustment in the offset position,
but this at least exercises setcursor2.
2018-11-15 20:52:18 -05:00
Russ Cox
67dbeee5fe acme: check file content before declaring file "modified since last read"
Bad remote file systems can change mtime unexpectedly,
and then there is the problem that git rebase and similar
operations like to change the files and then change them back,
modifying the mtimes but not the content.

Avoid spurious Put errors on both of those by checking file
content.

(False positive "modified since last read" make the real ones
difficult to notice.)
2017-10-10 13:51:24 -04:00
Russ Cox
4a3fb87264 acme: add log file in acme root directory
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
2014-04-30 12:14:29 -04:00
Russ Cox
219cf22d68 acme, sam: handle >1GB files correctly
TBR=rsc
https://codereview.appspot.com/74060043
2014-03-13 18:46:28 -04:00
Russ Cox
c96d832508 acme: retina scaling for scroll bars, button
R=rsc
http://codereview.appspot.com/6854094
2012-11-26 00:33:05 -05:00
Marius Eriksen
81c2c5e775 acme: add $acmeshell to control execution shell
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/6614056
2012-10-21 16:52:08 -04:00
Russ Cox
37f8ed2410 acme: mouse movement for Del
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
2012-09-23 22:01:56 -04:00
Russ Cox
76864eb6cd acme: scrolling fixes + new home/end
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
2011-08-02 07:44:11 -04:00
Russ Cox
ba31ab3044 9term, acme: autoscroll
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
2011-04-27 13:18:07 -04:00
Russ Cox
daea2c7d50 acme: correct modified message after initial load; more detail in
message

http://codereview.appspot.com/123051
2009-09-25 01:43:54 -04:00
Russ Cox
e47d0a1e98 acme: angle bracket tag matching, for XML, HTML etc
http://codereview.appspot.com/98042
2009-07-26 15:05:07 -04:00
Russ Cox
cd5a73785d acme: add -m option and avoid looking in the mirror 2008-04-17 16:04:19 -04:00
Russ Cox
1a4b58ebd8 acme: make STACK bigger for OS X (David Swasey) 2008-01-10 22:45:22 -05:00
rsc
6630175602 fix edit pipe bug 2006-05-05 04:55:14 +00:00
rsc
cbeb0b26e4 Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms. 2006-04-01 19:24:03 +00:00
rsc
cd1d0ab0b5 more tweaks 2006-01-12 05:43:26 +00:00
rsc
33dc4226a8 Cleanup in preparation for multiline tags. 2005-10-31 18:39:19 +00:00
rsc
8f88ddb02c unused neditwrsel 2005-03-23 20:20:17 +00:00
rsc
c1fca1adb0 garbage collection 2005-03-18 18:05:41 +00:00
rsc
d96da29b37 Add $foo window names back to acme, enabled with -'$'.
See the comment in wind.c about why this isn't the right
solution.
2005-03-14 20:53:10 +00:00
rsc
9d01e22178 add errors file 2005-01-30 16:34:12 +00:00
rsc
b8f742db85 os x changes 2005-01-11 17:43:53 +00:00
rsc
d8c78a8d56 add -r flag to reverse scrolling behavior.
from peter canning.
2005-01-10 00:21:13 +00:00
rsc
627bae9c76 clean up mkfile; fix winctlprint bug reported by peter canning 2005-01-04 21:39:23 +00:00
rsc
6d7fdb243c changes from plan 9 2004-12-27 01:16:26 +00:00
rsc
012a8a02d5 change md argument to number etc. (which acted only as a flag)
to an actual flag.

buffer underrun check in number

add xdata file for exactly the addressed region

save addr across opens
2004-10-22 17:11:30 +00:00
rsc
c16f1f733b Buttons 4 and 5. 2004-06-09 14:01:43 +00:00
rsc
904f0d0b42 oldorg was bad idea 2004-04-19 05:55:19 +00:00
rsc
892de79874 various little bug fixes 2004-04-19 05:54:21 +00:00
rsc
62c1415826 Let's try this - Dotfiles toggles listing of .* in directory listings. 2004-04-08 19:30:18 +00:00
rsc
8ad517944e Today's changes.
More changes.
2004-03-25 23:03:57 +00:00
rsc
2277c5d7bb Small tweaks
Lots of new code imported.
2004-03-21 04:33:13 +00:00
rsc
5a8e63b2f0 Fighting the good fight.
Move libfmt, libutf into subdirectories of lib9.

Add poll-based socket i/o to libthread, so that we can
avoid using multiple procs when possible, thus removing
dependence on crappy pthreads implementations.

Convert samterm, acme to the single-proc libthread.

Bring libcomplete, acme up-to-date w.r.t. Plan 9 distribution.
2004-02-29 22:10:26 +00:00
rsc
b3994ec5c7 More files related to user-level file servers.
Also add acme!
2003-12-11 17:50:28 +00:00