Daisuke Maki
d02bb4122c
Workaround glide being stubborn wrt lestrrat/go-pdebug -> lestrrat-go/pdebug
2018-10-25 09:50:16 +09:00
Daisuke Maki
b60d067747
Call SetCursor when drawing the prompt
2018-03-30 10:07:42 +09:00
Daisuke Maki
d213c89cab
Rename to Top -> FirstItem, Bottom -> LastItem
2017-12-27 07:14:11 +09:00
Anders Eurenius
3058ce77f4
Add scroll to top and bottom
2017-12-26 15:28:00 +01:00
Takashi Kokubun
405a729ac0
Reduce right scroll limit with a screen width
...
Column: 0 can show `width` columns.
Thus if lines have `num` columns, we should limit scroll to Column: `num - width`.
Otherwise screen is blacked out when we unlimitedly do ScrollRight.
2017-03-17 10:43:21 +09:00
Daisuke Maki
98936082f0
Only calculate the column size when necessary
...
This trims down the calculation required by #409 to only those lines
that will appear on screen, and still controls how far right we can
scroll to
2017-03-17 09:42:33 +09:00
Daisuke Maki
bc7e5ea1f6
remove unnecessary check for selectionPrefix
2017-02-28 23:30:06 +09:00
Daisuke Maki
ff10112452
PoC implementation for #384
...
* missing docs
* missing tests
2017-02-26 08:27:11 +09:00
Daisuke Maki
aa928308ca
wrong type
2016-12-15 09:48:28 +09:00
Daisuke Maki
47be5c7c85
Integrate ExternalCommand into the new format
2016-12-14 14:59:38 +09:00
Daisuke Maki
61b5d22fb8
Move stuff around for better code organization
2016-12-14 11:00:22 +09:00
Daisuke Maki
b1ea3c36b1
separate interface
2016-12-14 08:54:59 +09:00
Daisuke Maki
72b05ececd
See if this avoids the panic described in https://github.com/peco/peco/issues/359#issuecomment-255512262
2016-10-22 16:43:58 +09:00
tSU-RooT
43d4f27119
Shrink display cache
2016-10-17 14:23:08 +09:00
Daisuke Maki
821af182ab
reinstate single key jump
...
the caching was more agressive than before, and we forgot to
initialize the structure correctly
TODO: Write tests to catch this
fixes #331
2016-08-22 17:56:32 +09:00
Daisuke Maki
02c90c13d4
remove unncessary lock
2016-08-18 11:04:40 +09:00
Daisuke Maki
79556d5ad1
Use channel to receive list of runes insteard of raw array access
2016-07-05 16:03:13 +09:00
Daisuke Maki
f578cfc850
Various tweaks to remove locking and interdependency
...
* Source does not depend on MemoryBuffer
* Remove a bunch of mutexes
* Change them to RWMutex where applicable
2016-07-02 16:19:17 +09:00
Daisuke Maki
41083de5ca
move type declarations
2016-06-18 17:40:33 +09:00
Daisuke Maki
c12cd97d29
Use pdebug instead of trace
2016-06-18 17:40:33 +09:00
Daisuke Maki
75b3bd33d8
Cleanup
2016-06-18 17:40:33 +09:00
Daisuke Maki
3e9476676e
Make screen a member of Peco struct, not a global
2016-06-18 17:40:33 +09:00
Daisuke Maki
83bffcdc5f
use SetQuery
2016-06-18 17:40:33 +09:00
Daisuke Maki
77099ef426
collect results from selection buffer
2016-06-18 17:40:33 +09:00
Daisuke Maki
d996d054ca
starting to plugin the new pipeline stuff
2016-06-18 17:40:33 +09:00
Daisuke Maki
a8d042d93c
highlighting is back
2016-06-18 17:39:02 +09:00
Daisuke Maki
39d36c41b8
back to being able to draw the screen
2016-06-18 17:39:02 +09:00
Daisuke Maki
417be36cfb
More refactoring around current position/location state
2016-06-18 17:39:02 +09:00
Daisuke Maki
406cfe3bd7
Trying to get rid of "everything is a Ctx"
2016-06-18 17:39:02 +09:00
Daisuke Maki
e8c8ed19e7
Trying to untangle some of the mess
2016-06-18 17:39:02 +09:00
Syohei YOSHIDA
c3eeb5c8af
Don't change line if there is no output
2015-10-03 10:13:19 +09:00
Daisuke Maki
97728cbc21
run gofmt
...
refs #269
2015-09-29 14:21:15 +09:00
Daisuke Maki
5f38de0d5f
Allow tweaking SingleKeyJump mode
...
- Setting SingleKeyJump.ShowPrefix to true will make the
hint markers to be show ALWAYS
- Create a config struct for SingleKeyJump so we can
extend it later
2015-09-29 13:27:02 +09:00
Daisuke Maki
d07dfc94d4
Make sure to print the prefix even when there's a match
2015-09-29 12:29:24 +09:00
Daisuke Maki
62fa53e053
Implement hit-a-hint
...
- "@" toggles "SingleKeyJump" mode
- list of hot keys are displayed to the left
- selecting the key allows you to jump to the line, and
peco exits by selecting that line
2015-09-29 12:02:39 +09:00
Daisuke Maki
586c36a0e7
Let us being the great refactor
...
* Move internal stuff to internal
* Properly use conditional compilation to detect Windows
* Move type declarations to one location (except for a few places still)
2015-09-28 21:39:43 +09:00
Daisuke Maki
cbec2ff082
Compare against linbuf, not cropped buffer
...
fixes #264
2015-09-28 21:31:54 +09:00
Daisuke Maki
64e7e6f791
Fix another similar bug while we're at it
...
refs https://github.com/peco/peco/issues/260#issuecomment-143670990
2015-09-28 18:04:14 +09:00
Daisuke Maki
5beaeb6328
Only do the page re-calculation if we have a running query
...
refs #260
2015-09-28 16:52:08 +09:00
Daisuke Maki
fe1be27ea7
Change location when running query
...
Move to the closest location on the final page if our filtered buffer
is less than our location when the query was run
2015-09-28 14:36:50 +09:00
Tomohiro Nishimura
5c37d64b41
Fix ListArea's dirty is now encapsulated
2015-05-18 22:46:48 +09:00
Tomohiro Nishimura
ea6724c57d
Fix tab width calculation
2015-05-18 22:04:17 +09:00
Tomohiro Nishimura
f30c38224c
Remove wasted loop
2015-05-18 02:40:17 +09:00
Tomohiro Nishimura
8fb7f6eb16
Improve performance for horizontal scroll
2015-05-18 02:40:17 +09:00
Tomohiro Nishimura
f2c5cf2af7
Fix comment
2015-05-18 02:40:17 +09:00
Tomohiro Nishimura
b60d54fbc9
Fix horizontal scroll bug around line cache
2015-05-17 22:57:40 +09:00
Tomohiro Nishimura
fa02d52f66
Add ScrollLeft and ScrollRight action for horizontal scroll
2015-05-17 22:46:38 +09:00
Syohei YOSHIDA
1e9e1886a2
Correct misspellings in documents
2015-04-22 19:16:46 +09:00
Daisuke Maki
9b43eb3fbb
Remove looping element from CalculatePage
2015-03-19 14:16:14 +09:00
Daisuke Maki
c24da22065
Apply runewidth to prefixLen
2015-03-17 15:39:37 +09:00