aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/acme/wind.c
Commit message (Collapse)AuthorAgeFilesLines
* fix indentationDerek Stevens2022-09-071-1/+1
|
* acme/wind.c: redraw window body with bg color if too small for a single ↵Derek Stevens2022-09-071-0/+1
| | | | line; ref #10
* src/cmd/acme: provide info on presense or absence of undo history (#528)Roger Peppe2021-10-191-2/+2
| | | | | | It's sometimes useful to know whether there's been editing activity in a window. This PR adds that information to the ctl file. Change-Id: I21a342ac636dd5c7701b3ed560e3526867329c2c
* acme: fix buffer overflow introduced in parsetag refactorRuss Cox2020-01-131-6/+6
|
* acme: fix movetodel for spaces in file namesRuss Cox2020-01-131-11/+8
|
* acme: allow spaces in window namesRuss Cox2020-01-131-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.
* acme: one more place to use parsetagRuss Cox2020-01-131-5/+1
|
* acme: factor out tag parsing codeRuss Cox2020-01-131-11/+19
|
* Trivial changes: whitespace and modes.Dan Cross2020-01-101-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>
* acme: do not pass null pointers where disallowedNeven Sajko2020-01-021-1/+2
| | | | | | The C standards disallow passing null pointers to memmove and memcmp. Change-Id: I1c88c2adbc32a23ef742f206038b8f7c4e0540c7
* acme: check file content before declaring file "modified since last read"Russ Cox2017-10-101-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.)
* acme: add log file in acme root directoryRuss Cox2014-04-301-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
* fix gcc 4.7 warnings (thanks Tuncer Ayaz)Russ Cox2012-10-201-3/+1
| | | | | R=rsc http://codereview.appspot.com/6744053
* acme: mouse movement for DelRuss Cox2012-09-231-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
* acme: do not redraw body on every tag changeRuss Cox2009-07-151-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
* acme: multiline tag fixesRuss Cox2008-03-071-3/+5
|
* acme: revise multiline tag codeRuss Cox2008-03-071-28/+14
|
* acme: sync against Plan 9, remove -$ optionRuss Cox2008-03-071-214/+10
|
* acme: tag resize nitsRuss Cox2008-03-071-6/+12
|
* fix tags againrsc2007-03-161-14/+3
|
* fix too-aggressive tag redrawrsc2007-03-151-19/+35
|
* Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms.rsc2006-04-011-3/+3
|
* events buffer need not end in NULrsc2006-02-211-1/+1
|
* add chord fix from plan 9rsc2006-02-061-1/+4
|
* more tweaksrsc2006-01-121-8/+15
|
* avoid unnecessary winresize, which flush text cachersc2006-01-121-2/+5
|
* try autoexpand by defaultrsc2005-12-211-0/+2
|
* tag tweakrsc2005-12-161-12/+11
|
* auto-insert second line for expandrsc2005-12-161-0/+6
|
* add bigtagsrsc2005-12-161-0/+25
|
* Better window size management.rsc2005-12-161-1/+6
|
* More prep.rsc2005-10-311-5/+6
|
* Cleanup in preparation for multiline tags.rsc2005-10-311-24/+54
|
* winunlock bugrsc2005-07-281-6/+6
|
* various needed castsrsc2005-07-131-2/+2
|
* better tag handling in dollarsrsc2005-03-181-0/+13
|
* month old bug fix from robrsc2005-03-181-1/+1
|
* Add $foo window names back to acme, enabled with -'$'.rsc2005-03-141-7/+202
| | | | | See the comment in wind.c about why this isn't the right solution.
* clean up mkfile; fix winctlprint bug reported by peter canningrsc2005-01-041-5/+5
|
* autoindent fixes from robrsc2004-09-281-0/+2
|
* add tab size to window ctl filersc2004-04-251-1/+1
|
* undo the madness.rsc2004-04-211-172/+7
|
* $foo in tags - here only for reference.rsc2004-04-211-7/+172
|
* Fighting the good fight.rsc2004-02-291-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.
* completion, pageup/pagedownrsc2004-02-091-0/+5
|
* More files related to user-level file servers.rsc2003-12-111-0/+576
Also add acme!