aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/acme/wind.c
AgeCommit message (Collapse)AuthorFilesLines
2020-01-13acme: fix buffer overflow introduced in parsetag refactorRuss Cox1-6/+6
2020-01-13acme: fix movetodel for spaces in file namesRuss Cox1-11/+8
2020-01-13acme: allow spaces in window namesRuss Cox1-4/+19
There are many things we could do to make this work. an environment variable to control the character. Another option would be to use U+00A0 (non-breaking space), which renders the same as space. This change avoids changing the separator character and instead assumes that if the left side of the tag already ends in " Del Snarf |" then what comes before that is the file name. Acme already aggressively preserves the "Del Snarf |", so this should work decently well as a stop-gap. We can always try something else later. Fixes #26. Fixes #104. Fixes #329.
2020-01-13acme: one more place to use parsetagRuss Cox1-5/+1
2020-01-13acme: factor out tag parsing codeRuss Cox1-11/+19
2020-01-10Trivial changes: whitespace and modes.Dan Cross1-8/+8
Remote whitespace at the ends of lines. Remove blank lines from the ends of files. Change modes on source files so that they are not executable. Signed-off-by: Dan Cross <cross@gajendra.net>
2020-01-02acme: do not pass null pointers where disallowedNeven Sajko1-1/+2
The C standards disallow passing null pointers to memmove and memcmp. Change-Id: I1c88c2adbc32a23ef742f206038b8f7c4e0540c7
2017-10-10acme: check file content before declaring file "modified since last read"Russ Cox1-0/+1
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.)
2014-04-30acme: add log file in acme root directoryRuss Cox1-1/+2
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
2012-10-20fix gcc 4.7 warnings (thanks Tuncer Ayaz)Russ Cox1-3/+1
R=rsc http://codereview.appspot.com/6744053
2012-09-23acme: mouse movement for DelRuss Cox1-1/+40
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
2009-07-15acme: do not redraw body on every tag changeRuss Cox1-1/+1
fixes #5 http://bitbucket.org/rsc/plan9port/issue/5/ http://groups.google.com/group/plan9port-dev/t/e679347ecaa05cff http://codereview.appspot.com/95041
2008-03-07acme: multiline tag fixesRuss Cox1-3/+5
2008-03-07acme: revise multiline tag codeRuss Cox1-28/+14
2008-03-07acme: sync against Plan 9, remove -$ optionRuss Cox1-214/+10
2008-03-07acme: tag resize nitsRuss Cox1-6/+12
2007-03-16fix tags againrsc1-14/+3
2007-03-15fix too-aggressive tag redrawrsc1-19/+35
2006-04-01Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms.rsc1-3/+3
2006-02-21events buffer need not end in NULrsc1-1/+1
2006-02-06add chord fix from plan 9rsc1-1/+4
2006-01-12more tweaksrsc1-8/+15
2006-01-12avoid unnecessary winresize, which flush text cachersc1-2/+5
2005-12-21try autoexpand by defaultrsc1-0/+2
2005-12-16tag tweakrsc1-12/+11
2005-12-16auto-insert second line for expandrsc1-0/+6
2005-12-16add bigtagsrsc1-0/+25
2005-12-16Better window size management.rsc1-1/+6
2005-10-31More prep.rsc1-5/+6
2005-10-31Cleanup in preparation for multiline tags.rsc1-24/+54
2005-07-28winunlock bugrsc1-6/+6
2005-07-13various needed castsrsc1-2/+2
2005-03-18better tag handling in dollarsrsc1-0/+13
2005-03-18month old bug fix from robrsc1-1/+1
2005-03-14Add $foo window names back to acme, enabled with -'$'.rsc1-7/+202
See the comment in wind.c about why this isn't the right solution.
2005-01-04clean up mkfile; fix winctlprint bug reported by peter canningrsc1-5/+5
2004-09-28autoindent fixes from robrsc1-0/+2
2004-04-25add tab size to window ctl filersc1-1/+1
2004-04-21undo the madness.rsc1-172/+7
2004-04-21$foo in tags - here only for reference.rsc1-7/+172
2004-02-29Fighting the good fight.rsc1-2/+4
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-09completion, pageup/pagedownrsc1-0/+5
2003-12-11More files related to user-level file servers.rsc1-0/+576
Also add acme!