Commit graph

19 commits

Author SHA1 Message Date
Daisuke Maki e057cd404d Fix regression for caret drawing 2014-09-01 11:15:16 +09:00
Daisuke Maki 11dfa1b426 Refactor query and caretPos 2014-08-27 15:26:48 +09:00
Daisuke Maki daa134e159 Tweak to make it possible to test status bar et al 2014-08-22 15:14:56 +09:00
Daisuke Maki cd515a369f Start adding test for layout 2014-08-22 12:25:17 +09:00
Daisuke Maki a62bc068b2 Rip out termbox functions from main code so we can assigh a dummy later
in tests
2014-08-21 21:12:48 +09:00
Daisuke Maki f78ebb76e9 lint code 2014-08-19 20:37:57 +09:00
Daisuke Maki 3ccdc35c40 Remove hardcoded height - 2 and use linesPerPage() 2014-08-17 18:19:53 +09:00
Daisuke Maki 91eefefa24 Fix ToggleSelectionAndSelectNext
This action was doing the right thing, but the changes in the layout
was looking at the wrong line number
2014-08-17 18:01:29 +09:00
Daisuke Maki 0aa077bfa2 Jesus, what am I, a CS 101 student? 2014-08-17 17:51:25 +09:00
Daisuke Maki 74f4c46ce8 Implement ScrollPageUp/ScrollPageDown
Based on comment at https://github.com/peco/peco/pull/172#issuecomment-52393224
2014-08-17 08:20:16 +09:00
Daisuke Maki f9ee817fd5 Allow setting layout from config file
...So you don't have to type it all the time!
2014-08-16 21:13:32 +09:00
Daisuke Maki 04b1427f93 Fix moving around with arrows 2014-08-16 18:47:22 +09:00
Daisuke Maki b189d0f695 Fix the logic to check if a line is selected 2014-08-16 18:27:23 +09:00
Daisuke Maki 789ee803c3 Change everything to use anchors via AnchorSettings 2014-08-16 18:07:19 +09:00
Daisuke Maki ebdbbf937a Make UserPrompt calculate its veritical position dynamically 2014-08-16 17:00:49 +09:00
Daisuke Maki ca0d6f32a5 Make it possible to dynamically calculate y-offset for ListArea 2014-08-16 16:46:06 +09:00
Daisuke Maki 006228e0a5 Rip out list area from layout 2014-08-16 16:33:42 +09:00
Daisuke Maki 2b8a2aab5a rip out page calculation 2014-08-16 15:51:23 +09:00
Daisuke Maki 068c982864 Rip screen drawing out of View
View handles communication and control of elements in the Layout.
Layout does the actual drawing.
2014-08-16 07:33:31 +09:00