Commit Graph

242 Commits

Author SHA1 Message Date
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
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
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
8276865bb7 Merge pull request #2 from asottile/azure_pipelines
Enable testing using azure pipelines
2019-09-01 21:28:38 -07:00
Anthony Sottile
0dace647f9 Add fix for tmux 2.1 2019-09-01 21:13:27 -07:00
Anthony Sottile
3422bc9c78 Try using deadsnakes python 2019-09-01 20:07:54 -07:00
Anthony Sottile
cf05fd3e83 Enable testing using azure pipelines 2019-09-01 19:25:44 -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
03e42d357f Merge branch 'fix_ctrl_j' 2019-08-31 18:42:58 -07:00
Anthony Sottile
5ef57dcd29 Use nonl mode to differentiate ^J and <enter> 2019-08-31 18:42:46 -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
0ec63c3246 Update docs 2019-08-31 18:31:09 -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
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
8ce6ae53eb Update screenshots 2019-08-16 20:15:43 -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
2b73ab401c Add helper scripts for debugging babi 2019-08-12 15:56:06 -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
c672565dfd react to resize (not tested yet) 2019-08-03 22:47:17 -07:00
Anthony Sottile
f4ed539342 Show some demos of babi 2019-08-03 10:49: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
Anthony Sottile
b9e9604a60 Initial empty commit 2019-07-12 19:50:58 -07:00