aboutsummaryrefslogtreecommitdiff
path: root/src/cmd
AgeCommit message (Collapse)AuthorFilesLines
2017-11-069term: Fix ptys in MacOS High Sierra.Petter Rodhelind1-9/+12
2017-11-06Merge remote-tracking branch 'upstream/master'Petter Rodhelind5-18/+103
2017-11-02acme: preserve window position and selection during GetRuss Cox5-18/+103
Before, executing Get in a file rewound the window offset and selection to the start of the file. After this CL, Get preserves the window offset and selection, where preserve is defined as "the same line number and rune offset within the line". So if the window started at line 10 before and the selection was line 13 chars 5-7, then that will still be true after Get, provided the new content is large enough. This should help the common situation of plumbing a compiler error, realizing the window is out of date, clicking Get, and then losing the positioning from the plumb operation.
2017-10-30samterm: Mouse scroll one line at a time.Petter Rodhelind1-0/+4
2017-10-269term: Use acme colors.Petter Rodhelind1-3/+6
2017-10-26samterm: Fix indent and code style.Petter Rodhelind1-14/+14
2017-10-25samterm: Add line wrapping for LINESTART/LINEEND, ctrl+a and ctrl+e.Petter Rodhelind1-5/+14
2017-10-25samterm: Remove focus follows mouse.Petter Rodhelind1-2/+0
2017-10-25samterm: Add mouse scrolling.Petter Rodhelind2-14/+21
This makes it possible to use the scroll wheel to simulate button 1 and button 3 clicks in the scroll bar. It scrolls in the same way with variable scroll sections. Further down, more lines per scroll etc...
2017-10-23samterm: change focus on mouseoverPetter Rodhelind1-0/+2
2017-10-23samterm: Add undo/redo key bindings.Petter Rodhelind1-0/+6
2017-10-23samterm: Add sendcmd for arbitrary input in the command window.Petter Rodhelind1-0/+42
2017-10-22acme: Move one line up/down using ^P and ^N.Petter Rodhelind1-32/+42
2017-10-16acme: Hide dotfiles in dirs.Petter Rodhelind1-0/+3
These can easily be shown in a win-window with 'ls -a'...
2017-10-16Merge remote-tracking branch 'upstream/master'Petter Rodhelind27-23/+98
2017-10-14acme: free buf in checksha1Russ Cox1-0/+1
Thanks to Lorenzo Beretta for noticing.
2017-10-139term: fix getpts on macOS 10.13David du Colombier1-0/+16
Since macOS 10.13, opening the /dev/ptyXX files always return ENOENT. Consequently, we changed getpts to use openpty to open a pseudoterminal, like on Linux and OpenBSD. Fixes #90. Fixes #110.
2017-10-13upas/nfs: fix warningsDavid du Colombier3-10/+2
decode.c:146:8: warning: variable ‘argv’ set but not used fs.c:953:47: warning: variable ‘reset’ set but not used imap.c:348:6: warning: variable ‘prefix’ set but not used Updates #114.
2017-10-10acme: check file content before declaring file "modified since last read"Russ Cox23-13/+79
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-09Merge remote-tracking branch 'upstream/master'Petter Rodhelind2-40/+113
2017-10-09devdraw: fix build on macOS < 10.12Rudá Moura1-0/+2
After making the build on macOS silent on commit 310ae03, the build was broken on macOS lesser than 10.12 (Sierra). This commit conditionally checks the version the of the SDK before using the defined values for silent build. Fixes #66.
2017-10-01xd: add -R for runewise dumpLeah Neukirchen1-40/+111
Ported from Plan 9 2013-05-21. https://github.com/0intro/plan9/commit/b377a116d132865c011a3fb3ea76528ffd32963f Closes #16.
2017-09-28Merge remote-tracking branch 'upstream/master'Petter Rodhelind24-65/+3
2017-09-14all: remove .cvsignore filesKare Nuorteva21-60/+0
Rename following .cvsignore files to .gitkeep since they are required by the build (directories must exist before build): - bin/fossil/.gitkeep - bin/fs/.gitkeep - bin/venti/.gitkeep Change-Id: I9c2865058480cffb3a4613f25e2eca1f7e5578c0
2017-09-01svgpic: fix warningsDavid du Colombier1-3/+1
plsvg.c:291:21: warning: variable ‘y2’ set but not used plsvg.c:291:17: warning: variable ‘x2’ set but not used
2017-09-01all: update site from swtch.com to 9fans.github.ioRuss Cox1-1/+1
2017-09-01ed: allow larger temp filesRuss Cox1-1/+1
Requested by rob.
2017-08-03acme: Use the same tabstop setting in cloned/zerox window as in the source ↵Petter Rodhelind1-0/+1
window.
2017-08-03devdraw: Use old fullscreen.Petter Rodhelind1-1/+1
This makes it a lot easier to do keyboard shortcut fast switching between virtual desktops.
2017-08-01Merge remote-tracking branch 'upstream/master'Petter Rodhelind3-3/+8
2017-07-23venti: fix venti graph on 64-bitMichael Stroucken1-1/+1
A pixel is 32 bits wide in RGBA, regardless of system's word size. Change-Id: Iea36a8dafdec9ce8d593f944ef5ed1ea08e11d25 Reviewed-on: https://plan9port-review.googlesource.com/2980 Reviewed-by: David du Colombier <0intro@gmail.com>
2017-07-16acme: implement Cmd-Shift-Z for Redo on MacRuss Cox1-0/+4
Change-Id: Ie9332ed473609bd6ca156be0843dc5411cbf7b93 Reviewed-on: https://plan9port-review.googlesource.com/2941 Reviewed-by: Russ Cox <rsc@swtch.com>
2017-07-16devdraw: fix Mac Kcmd+ShiftRuss Cox1-0/+3
Change-Id: Ide32a9397701085b17fbd42f0866eb3de11e4190 Reviewed-on: https://plan9port-review.googlesource.com/2940 Reviewed-by: Russ Cox <rsc@swtch.com>
2017-07-03Merge remote-tracking branch 'upstream/master'Petter Rodhelind19-5/+4038
2017-06-19fontsrv: avoid quote mapping on fonts with indistinguishable quotesRuss Cox1-5/+19
Fixes #86. Change-Id: Id487219a0fcfdb68133fc81b11383365a1431c1c Reviewed-on: https://plan9port-review.googlesource.com/2922 Reviewed-by: Russ Cox <rsc@swtch.com>
2017-06-19svgpic: new program to convert pic to svgRuss Cox18-0/+4019
This is an experiment. Like tpic it's a copy-and-paste fork of pic. Change-Id: Ia22772bd5881c7904a6d8f8e0b46fde8cea89cbd Reviewed-on: https://plan9port-review.googlesource.com/2920 Reviewed-by: Russ Cox <rsc@swtch.com>
2017-05-24Merge remote-tracking branch 'upstream/master'Petter Rodhelind2-2/+3
2017-05-24Syntax cleanupPetter Rodhelind1-8/+7
...and the use of TRUE/FALSE instead of 1/0 for explicicy
2017-05-24Fix segfault when TAB in other places than body textPetter Rodhelind1-0/+2
2017-05-11Copy tabexpand setting when cloningPetter Rodhelind1-0/+1
2017-05-11Disable tab expansion as defaultPetter Rodhelind1-1/+1
2017-05-11Switch tab expansion ON/OFF via TabexpandPetter Rodhelind1-1/+8
2017-05-11Add support for tab expansion (because everyone else is stupid and I am ↵Petter Rodhelind4-0/+29
forced to follow along) Tab expansion inserts spaces instead of TAB character. Number of spaces is dependent upon your current tab stop setting, which can be changed by running "Tab n". As of now, it's not possible to turn it on and off during runtime. You can however see whether it's compiled or not by executing the command "Tabexpand". The console will show either 1 or 0. This will be taken care of in a later commit.
2017-05-05factotum: Fix an operator precedence bug in the secstore codeDan Cross1-1/+1
`==` is higher precedence than `&`. Parenthesize. Change-Id: I2c7ee588fea0d8a66e1c8424f26630015388d61a Signed-off-by: Dan Cross <cross@gajendra.net> Reviewed-on: https://plan9port-review.googlesource.com/2860 Reviewed-by: Gleydson Soares <gsoares@gmail.com>
2017-04-21yacc: Fix a bug from at least 1995.Dan Cross1-1/+2
Fix a bug folding newlines in strings constants in C code snippets in YACC. This code has existed since at least 2nd Edition Plan 9. Change-Id: Iba17b89a6529ac9fa6610bf0b44f551904174c26 Signed-off-by: Dan Cross <cross@gajendra.net> Reviewed-on: https://plan9port-review.googlesource.com/2840 Reviewed-by: Russ Cox <rsc@swtch.com>
2017-04-20Add ^A and ^E wrap arounds for easy movement over multiple linesPetter Rodhelind1-0/+11
2017-04-20Merge remote-tracking branch 'upstream/master'Petter Rodhelind1-1/+1
2017-04-089term: Add missing parentheses, preventing buffer overflow.Ray Lai1-1/+1
(el-sr) is the string length and (sizeof wdir - strlen(name) - 20) is the buffer size. When the string length is greater than the buffer size, the beginning of the string is supposed to be trimmed to fit in the buffer size. Unfortunately a pair of parentheses were missing, pointing sr outside the buffer, and the for loop below then reads outside the buffer. For certain binary data printed in a window, it causes a segfault. Change-Id: Iffeaa348260ee2a5a36d9577308fb8d1c1688d05 Reviewed-on: https://plan9port-review.googlesource.com/1540 Reviewed-by: Gleydson Soares <gsoares@gmail.com>
2017-03-19Add Cmd+S for save/putPetter Rodhelind1-0/+5
2017-03-18Fix kdown when last line is emptyPetter Rodhelind1-1/+1