Commit Graph

163 Commits

Author SHA1 Message Date
Anthony Sottile
b52fb15368 Use clrtoeol to draw blank lines 2020-03-13 19:11:59 -07:00
Anthony Sottile
59946cad9a Improve Perf interface 2020-03-12 22:37:05 -07:00
Anthony Sottile
2066bed28e simpler TERM setting (and don't accidentally 256color in suspend) 2020-03-09 14:28:56 -07:00
Anthony Sottile
ec7fbba633 Fix race condition with multiple escape sequences in quick succession
Resolves #31
2020-03-06 16:58:50 -08:00
Anthony Sottile
b11575b998 Fix missing test coverage 2020-03-06 16:58:29 -08:00
Anthony Sottile
1e14929aec Improve performance of large pastes by batching text 2020-03-06 09:43:13 -08:00
Anthony Sottile
85af92537c Merge pull request #36 from asottile/all-repos_autofix_all-repos-manual
Use covdefaults to handle coveragerc
2020-02-29 21:30:46 -08:00
Anthony Sottile
a966aef72d Use covdefaults to handle coveragerc
[covdefaults](https://github.com/asottile/covdefaults)

Committed via https://github.com/asottile/all-repos
2020-02-29 21:11:36 -08:00
Anthony Sottile
ecee5ab1ab Use the default colors instead of the muted ones 2020-02-29 20:26:06 -08:00
Anthony Sottile
e365580985 Ensure PageUp and PageDown go to beginning of line 2020-02-29 16:09:34 -08:00
Anthony Sottile
c248fb2d50 Fix noop cut at end of file
Resolves #35
2020-02-27 16:11:27 -08:00
Anthony Sottile
21ada1750b make a module for typing-related things 2020-02-24 15:31:39 -08:00
Anthony Sottile
b02a6eeb29 Merge pull request #34 from asottile/require_3_6_1
babi: require 3.6.1+
2020-02-24 15:27:37 -08:00
Anthony Sottile
6dbad7791d babi: require 3.6.1+ 2020-02-24 15:24:38 -08:00
Anthony Sottile
bf8e26d4f6 Merge tag 'v0.0.0.post1' 2020-02-24 15:08:36 -08:00
Anthony Sottile
3edcbe621d v0.0.0.post1 2020-02-24 15:05:24 -08:00
Anthony Sottile
c4944669e9 Temporarily restore 3.6.0 support 2020-02-24 15:05:05 -08:00
Anthony Sottile
3c30b25238 Split XDG lookup to a function 2020-02-22 15:35:10 -08:00
Anthony Sottile
1b9114e050 Merge pull request #33 from asottile/split_file
Split babi.py into separate file
2020-02-22 15:17:58 -08:00
Anthony Sottile
a2ffbfd0de Move Screen to babi.screen 2020-02-22 15:11:08 -08:00
Anthony Sottile
babb024c51 move File into its own file 2020-02-22 14:47:14 -08:00
Anthony Sottile
a207ba6302 split out History 2020-02-22 14:33:55 -08:00
Anthony Sottile
9343805ad0 move Perf to its own module 2020-02-22 14:33:55 -08:00
Anthony Sottile
8693894fae Split out Status 2020-02-22 14:33:55 -08:00
Anthony Sottile
524dca9c7a move Prompt to a separate module 2020-02-22 14:33:55 -08:00
Anthony Sottile
b7bb28bd76 move Margin to its own module 2020-02-22 14:33:55 -08:00
Anthony Sottile
e2b5d533b6 Split ListSpy to its own module 2020-02-22 14:33:54 -08:00
Anthony Sottile
b7700b8588 convert babi into a package 2020-02-22 12:35:41 -08:00
Anthony Sottile
9683f15bcf Don't include the bottom line of selection if blank 2020-02-21 19:35:28 -08:00
Anthony Sottile
75151505a7 Add cProfile output to --perf-log 2020-02-19 18:46:25 -08:00
Anthony Sottile
e0b10e8b9c Remove --color-test 2020-02-17 17:08:26 -08:00
Anthony Sottile
a36ea5d1ed Set position at end when defaulting prompt 2020-01-08 22:20:01 -08:00
Anthony Sottile
1030f1170a Fix dedent at beginning of line 2020-01-08 21:16:53 -08:00
Anthony Sottile
de57f2cef2 Fix search default when equal to last history entry 2020-01-08 21:10:53 -08:00
Anthony Sottile
f1e8bcca3d Match the position of the reverse-search match in the prompt 2020-01-07 17:31:41 -08:00
Anthony Sottile
817b542861 Add small amount of performance logging 2020-01-07 17:12:42 -08:00
Anthony Sottile
8332979c28 Make get_char a method of Screen 2020-01-07 16:34:45 -08:00
Anthony Sottile
11c195e9bf Add faster test harness which fakes curses 2020-01-06 20:18:34 -08:00
Anthony Sottile
1c66b81dc3 typo in test name 2020-01-06 09:46:42 -08:00
Anthony Sottile
180ff20be5 Add :sort command 2020-01-06 09:23:53 -08:00
Anthony Sottile
083417399e Use A_DIM when highlighting
- this makes the highlight different from the cursor
- I think this is what vim does
2020-01-06 07:41:09 -08:00
Anthony Sottile
85af31c56f minor change to quick_prompt 2020-01-05 14:17:49 -08:00
Anthony Sottile
22db250ab8 Add indent / dedent
Resolves #27
2020-01-05 09:03:58 -08:00
Anthony Sottile
b08f533554 Make selection render like visual mode in vim
Note that this causes trailing whitespace if you copy out of the pane with
the mouse.  This is the same as how vim renders this though.  nano takes a
different approach which doesn't result in trailing whitespace, but I find it
more difficult to see whether the ends of lines are highlighted.

If later I want the nano behaviour, remove the `+ 1`s in this patch.
2020-01-05 07:35:12 -08:00
Anthony Sottile
865f2091a2 Add tests for ^BSpace (^H) 2020-01-04 12:04:04 -08:00
Anthony Sottile
78beaecec7 Make ^Backspace the same as Backspace
Unforunately no tests for this, it seems `tmux send-keys ^BSpace` is broken
2020-01-04 09:12:27 -08:00
Anthony Sottile
a893bf0b93 shift + movement = selection 2020-01-03 18:57:01 -08:00
Anthony Sottile
6137fac556 Compute modified state automatically with ListSpy 2020-01-03 11:55:27 -08:00
Anthony Sottile
3af21927cd Implement cut / uncut without prevkey 2020-01-03 09:54:20 -08:00
Anthony Sottile
cf9168a444 Simplify replace highlighting routine 2020-01-02 19:07:19 -08:00