Commit bb84d4c
committed
fix: use better defaults when
1. Swap the default borders, because they assumed the prompt at the top
and the match listing underneath:
┌ CommandT [fd] ─────────────┐ prompt border characters:
│> │ { '┌', '─', '┐', '│', '┤', '─', '├', '│' }
├────────────────────────────┤
│> CODE_OF_CONDUCT.md │ match listing border
│ CONTRIBUTING.md │ characters:
│ doc/command-t-ruby.txt │ { '', '', '', '│', '┘', '─', '└', '│' }
│ doc/command-t.txt │
└────────────────────────────┘
When the prompt is at the bottom and the match listing is above (ie.
when `position = 'bottom'` is set), the borders need to get swapped:
┌────────────────────────────┐
│> CODE_OF_CONDUCT.md │ match listing border
│ CONTRIBUTING.md │ characters:
│ doc/command-t-ruby.txt │ { '┌', '─', '┐', '│', '┤', '─', '├', '│' }
│ doc/command-t.txt │
├────────────────────────────┤
│> │ prompt border characters:
└ CommandT [fd] ─────────────┘ { '', '', '', '│', '┘', '─', '└', '│' }
2. Likewise, when `position = 'bottom'` is set, we need to change the
prompt's `title` to be a `footer` instead.
Closes: #436position = 'bottom'
1 parent c153217 commit bb84d4c
File tree
4 files changed
+26
-9
lines changed- lua/wincent/commandt
- private
4 files changed
+26
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
630 | 630 | | |
631 | 631 | | |
632 | 632 | | |
633 | | - | |
| 633 | + | |
634 | 634 | | |
635 | 635 | | |
636 | 636 | | |
| |||
639 | 639 | | |
640 | 640 | | |
641 | 641 | | |
642 | | - | |
| 642 | + | |
643 | 643 | | |
644 | 644 | | |
645 | 645 | | |
| |||
652 | 652 | | |
653 | 653 | | |
654 | 654 | | |
655 | | - | |
656 | | - | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
657 | 665 | | |
658 | 666 | | |
659 | 667 | | |
| |||
702 | 710 | | |
703 | 711 | | |
704 | 712 | | |
705 | | - | |
| 713 | + | |
706 | 714 | | |
707 | 715 | | |
708 | 716 | | |
| |||
765 | 773 | | |
766 | 774 | | |
767 | 775 | | |
768 | | - | |
| 776 | + | |
769 | 777 | | |
770 | 778 | | |
771 | 779 | | |
772 | | - | |
| 780 | + | |
773 | 781 | | |
774 | 782 | | |
775 | 783 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
| 177 | + | |
177 | 178 | | |
178 | 179 | | |
179 | 180 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| 102 | + | |
102 | 103 | | |
103 | 104 | | |
104 | 105 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
51 | 54 | | |
52 | 55 | | |
53 | 56 | | |
| |||
68 | 71 | | |
69 | 72 | | |
70 | 73 | | |
| 74 | + | |
71 | 75 | | |
72 | 76 | | |
73 | 77 | | |
| |||
90 | 94 | | |
91 | 95 | | |
92 | 96 | | |
| 97 | + | |
93 | 98 | | |
94 | 99 | | |
95 | 100 | | |
| |||
203 | 208 | | |
204 | 209 | | |
205 | 210 | | |
206 | | - | |
| 211 | + | |
| 212 | + | |
207 | 213 | | |
208 | 214 | | |
209 | 215 | | |
| |||
269 | 275 | | |
270 | 276 | | |
271 | 277 | | |
272 | | - | |
| 278 | + | |
| 279 | + | |
273 | 280 | | |
274 | 281 | | |
275 | 282 | | |
| |||
0 commit comments