Commit Graph

34 Commits

Author SHA1 Message Date
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
ff3f12ffb4 Implement rudimentary file saving 2019-10-05 16:37:01 -07:00
Anthony Sottile
fba7d25417 Fix suspend and resize 2019-09-30 19:31:02 -07:00
Anthony Sottile
08c3118fd8 Combine Position and File 2019-09-29 07:41:10 -07:00
Anthony Sottile
acf71db8ca Revert "Add fix for tmux 2.1"
This reverts commit 0dace647f9.
2019-09-28 17:06:18 -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
acccee3760 edit multiple files 2019-09-28 06:50:20 -07:00
Anthony Sottile
d2678633db Add failing test for ^Home 2019-09-24 19:36:43 -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
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
0dace647f9 Add fix for tmux 2.1 2019-09-01 21:13:27 -07:00
Anthony Sottile
d9814fb658 shorten some variable names 2019-09-01 19:20:07 -07:00
Anthony Sottile
16c6526dac Use keyword-only arguments for await_cursor_position 2019-08-31 18:49:41 -07:00
Anthony Sottile
1dc77312c7 Make tests less flaky 2019-08-31 18:47:53 -07:00
Anthony Sottile
4ccde41d5b Revert "Switch tests to use ^R instead of ^J"
This reverts commit 3dd1a0333a.
2019-08-31 18:40:36 -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
3dd1a0333a Switch tests to use ^R instead of ^J
For some reason ^J is being treated the same as the enter key.  I'm not sure
how nano knows the difference (?) -- will have to investigate further!
2019-08-31 15:30: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
9f1077ec28 babi can load text and ~mostly navigate with the arrow keys 2019-08-16 20:06:51 -07:00
Anthony Sottile
352c39ebf1 Refactor tests 2019-08-14 09:38:39 -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
a516aaf632 Add tests for resizing down 2019-08-06 22:41:05 -07:00
Anthony Sottile
5d12a08146 Add coverage for --color-test 2019-08-04 13:15:45 -07:00
Anthony Sottile
a100b03f94 Add color / non-color tests 2019-08-04 08:20:26 -07:00
Anthony Sottile
c52702d0a6 Add a test suite and some basic navigation 2019-07-27 19:22:43 -07:00