Commit graph

47 commits

Author SHA1 Message Date
Daisuke Maki 8075a29013 First pass at removing termbox from common APIs
Start tackling from styles. This commit still should break
the existing application, as there are still instances where
the termbox-native styles are accessed directly via struct field
lookups.

Because we separated colors from attributes, you can no longer
simply refer to Style.fg without merging them aith the attributes
such as bold, underline, etc.

Meanwhile, in order to fix tests we have dicovered the existance
of os.UserHomeDir(), so we're going to use that.
2020-12-21 13:12:03 +09:00
narugit a7cd43ff22 Apply 256color configuration 2020-06-06 21:38:11 +09:00
narugit a14f3abf35 Add configuration for 256color 2020-06-06 21:38:11 +09:00
Daisuke Maki 61b5d22fb8 Move stuff around for better code organization 2016-12-14 11:00:22 +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 e32b419df9 Fix styles 2016-06-23 02:50:08 -04:00
Daisuke Maki 6511b31674 Locate rcfile
fixes #306
2016-06-18 17:40:33 +09:00
Daisuke Maki 39eb717c6e Wrap errors 2016-06-18 17:40:33 +09:00
Daisuke Maki e3c36875fa eradicate fmt.Errorf 2016-06-18 17:40:33 +09:00
Daisuke Maki a8d042d93c highlighting is back 2016-06-18 17:39:02 +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 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 c37cee0a99 Add a QueryExecutionDelay config
This allows you to set an arbitrary delay between query execution.
For example, when you type fast, by default queries will be run
against every character being typed in. By setting this to a higher
number, peco will batch these up into one query execution instruction.

The unit of this parameter is milliseconds.

Personally, I like 500
2015-03-17 15:37:53 +09:00
Daisuke Maki 64fc4d12fd some linting 2015-03-17 15:37:53 +09:00
Daisuke Maki bcba884007 rename confusing variable 2015-03-17 15:37:52 +09:00
Daisuke Maki af4a4c8116 Remove more silly accessors 2015-03-17 15:37:52 +09:00
Daisuke Maki 08653e2afe Note and docs about BufferThreshold 2015-03-17 15:37:52 +09:00
Daisuke Maki b848c6c0a2 Implement sticky selection
By default this feature is disabled, keeping backward compatibiity.
This should fix #230
2015-03-17 15:37:51 +09:00
Daisuke Maki 851a3405ce Remove more references to matcher 2015-03-17 15:37:50 +09:00
Daisuke Maki f323966c77 Implement custom matcher using the new streaming filter 2015-03-17 15:37:49 +09:00
Daisuke Maki cd515a369f Start adding test for layout 2014-08-22 12:25:17 +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 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
Daisuke Maki 5006a121ea Deprecate 'Matcher' in config file, use 'InitialMatcher'
This aligns the option name with the command line option name in the
peco binary.
2014-08-13 14:55:04 +09:00
Daisuke Maki 73473f0201 golint 2014-07-23 18:12:50 +09:00
Daisuke Maki 056e41ecf3 golint 2014-07-23 18:05:37 +09:00
uobikiemukot 13aefc81c7 support "on_bold" attribute (termbox bg: AttrBold) 2014-07-22 21:49:09 +09:00
Daisuke Maki 620e324c5e golint 2014-07-12 16:41:30 +09:00
Daisuke Maki 7d3310fce5 Create combined actions.
This change still doesn't work, as data modification happens at
different goroutines and some things just don't make sense then
2014-07-11 14:39:31 +09:00
Daisuke Maki 8d84660f67 Start moving away from the old way of using the Keymap object 2014-07-05 21:47:14 +09:00
Daisuke Maki 8c3e629dad Various
* Alt key mod now work again
* Use TrimSpace
* Remove some unused code (need to delete a LOT more)
2014-07-05 21:30:30 +09:00
Takashi Kokubun f4a0ae6852 Enable customizing query prompt 2014-07-05 11:04:12 +09:00
Takashi Kokubun 772d804c25 Introduce matched style 2014-07-04 01:33:45 +09:00
Daisuke Maki 46985ff2af Fix test 2014-06-26 12:22:59 +09:00
Daisuke Maki a0c6cc5b47 Try to workaround #102 2014-06-26 11:11:17 +09:00
Daisuke Maki 5816ca2f5c Remove stray debug statement 2014-06-17 18:34:35 +09:00
lestrrat c1dd4d722a Merge pull request #71 from lestrrat/xdg-base-dir
merge xdg-base-dir to master
2014-06-17 18:33:21 +09:00
Daisuke Maki 6043ed2969 Change where LocateRcfile() is definited so we can test it
refs #67
2014-06-17 10:51:52 +09:00
mattn 9a1799134e User CustomMatcher 2014-06-16 17:36:48 +09:00
Daisuke Maki c0e8d803af Move style stuff into config
refs #16
2014-06-16 15:37:52 +09:00
Takashi Kokubun d4c93ca121 Enable color configuration 2014-06-16 07:35:38 +09:00
swdyh d67f391101 Change config default matcher to IgnoreCase 2014-06-15 18:35:19 +09:00
cubicdaiya 526199b277 go fmt ./... 2014-06-13 17:53:00 +09:00
mattn eea8c59e53 Configurable Default Matcher 2014-06-13 14:36:53 +09:00
Daisuke Maki 363c147d25 Directly use NewDecoder(io.Reader).Decode() 2014-06-11 11:16:28 +09:00
Daisuke Maki 30957e24f1 Attempt to implement keymaps 2014-06-11 10:18:23 +09:00