Commit Graph

41 Commits

Author SHA1 Message Date
Anthony Sottile
3843a01391 undo / redo 2019-11-09 13:33:30 -08:00
Anthony Sottile
8b5b8bb4be Move status quick update to tick() 2019-11-06 16:40:58 -08:00
Anthony Sottile
f76577cf8c Normalize escape sequence to \x1b 2019-11-02 15:35:54 -07:00
Anthony Sottile
0038c972fb Fix paging up to negative offsets 2019-11-02 15:25:53 -07:00
Hayden Young
c3362aea18 :wq command to write then close 2019-10-27 01:01:12 +00:00
Anthony Sottile
b14d93b102 Implement cut (^K) and uncut (^U) 2019-10-26 17:03:17 -07:00
Anthony Sottile
a2fc4772cf Cancel commands by entering a blank command or ^C 2019-10-24 10:54:09 -07:00
Anthony Sottile
72bc067fa5 command mode (can now be quit with :q)
Co-authored-by: Hayden Young <hayden@haydennyyy.com>
2019-10-23 18:41:27 -07:00
Anthony Sottile
07d03d8ad0 fix typo 2019-10-19 14:23:33 -07:00
Anthony Sottile
c354285d44 Fix backspace on macos 2019-10-16 15:17:11 -07:00
Anthony Sottile
ff3f12ffb4 Implement rudimentary file saving 2019-10-05 16:37:01 -07:00
Anthony Sottile
414f21df4b reorder some functions to make slightly more sense 2019-10-01 11:34:50 -07:00
Anthony Sottile
fba7d25417 Fix suspend and resize 2019-09-30 19:31:02 -07:00
Anthony Sottile
852f58c2bb Small simplifications 2019-09-30 19:19:49 -07:00
Anthony Sottile
08c3118fd8 Combine Position and File 2019-09-29 07:41:10 -07:00
Anthony Sottile
8aaf3f9a25 Display the file number when multiple files are open 2019-09-28 16:53:51 -07:00
Anthony Sottile
74f18b0ec2 Use M-Right and M-Left to switch between files 2019-09-28 15:02:44 -07:00
Anthony Sottile
39c24da092 Implement ^Home and ^End + escape sequences
Resolves #6
2019-09-28 14:51:38 -07:00
Anthony Sottile
1d6d6a4883 Upgrade mypy 2019-09-28 06:57:29 -07:00
Anthony Sottile
acccee3760 edit multiple files 2019-09-28 06:50:20 -07:00
Anthony Sottile
6b896d4fd1 Implement page up and page down 2019-09-22 06:48:26 -07:00
Anthony Sottile
a0b7eb2f9c Fix scrolling to negative offsets 2019-09-13 17:32:47 -07:00
Anthony Sottile
47e8aa0145 Move c_main state into objects 2019-09-13 17:15:21 -07:00
Anthony Sottile
a6df11a34c Receive more escape sequences, reimplement suspension
By enabling "raw" mode, `babi` will receive ^S / ^Q / ^Z / ^\.  As such we
need to reimplement the logic of ^Z
2019-09-02 19:06:58 -07:00
Anthony Sottile
d9814fb658 shorten some variable names 2019-09-01 19:20:07 -07:00
Anthony Sottile
5ef57dcd29 Use nonl mode to differentiate ^J and <enter> 2019-08-31 18:42:46 -07:00
Anthony Sottile
fb0e56e393 Implement ^A and ^E as aliases for Home and End 2019-08-31 15:46:37 -07:00
Anthony Sottile
784c18320a Implement Home and End keys 2019-08-31 15:42:23 -07:00
Anthony Sottile
54cff11576 Implement delete 2019-08-31 15:16:10 -07:00
Anthony Sottile
6a18fb8258 Implement pressing enter 2019-08-31 14:55:21 -07:00
Anthony Sottile
86fb2c7dab Implement text insertion and backspace 2019-08-31 14:39:42 -07:00
Anthony Sottile
f179b09209 Horizontal scrolling 2019-08-31 12:49:21 -07:00
Anthony Sottile
46a0918043 Use Margin over curses.LINES more 2019-08-17 06:15:46 -07:00
Anthony Sottile
00328c2914 Simplify Position initialization 2019-08-17 06:07:09 -07:00
Anthony Sottile
9f1077ec28 babi can load text and ~mostly navigate with the arrow keys 2019-08-16 20:06:51 -07:00
Anthony Sottile
d40fa7f93b Fix edge cases with very short windows 2019-08-12 17:00:12 -07:00
Anthony Sottile
ea6503d9b4 Start displaying text 2019-08-12 15:55:40 -07:00
Anthony Sottile
5d12a08146 Add coverage for --color-test 2019-08-04 13:15:45 -07:00
Anthony Sottile
c672565dfd react to resize (not tested yet) 2019-08-03 22:47:17 -07:00
Anthony Sottile
c52702d0a6 Add a test suite and some basic navigation 2019-07-27 19:22:43 -07:00
Anthony Sottile
13a6bbc51b initial commit with color test 2019-07-12 19:51:48 -07:00