fzf/src
Alexandr b4cccf23d4 Improvements to code quality and readability (#1737)
* Remove 1 unused field and 3 unused functions

unused elements fount by running
golangci-lint run --disable-all --enable unused

src/result.go:19:2: field `index` is unused (unused)
        index  int32
        ^
src/tui/light.go:716:23: func `(*LightWindow).stderr` is unused (unused)
func (w *LightWindow) stderr(str string) {
                      ^
src/terminal.go:1015:6: func `numLinesMax` is unused (unused)
func numLinesMax(str string, max int) int {
     ^
src/tui/tui.go:167:20: func `ColorPair.is24` is unused (unused)
func (p ColorPair) is24() bool {
                   ^

* Address warnings from "gosimple" linter

src/options.go:389:83: S1003: should use strings.Contains(str, ",,,") instead (gosimple)
        if str == "," || strings.HasPrefix(str, ",,") || strings.HasSuffix(str, ",,") || strings.Index(str, ",,,") >= 0 {
                                                                                         ^
src/options.go:630:18: S1007: should use raw string (`...`) with regexp.MustCompile to avoid having to escape twice (gosimple)
        executeRegexp = regexp.MustCompile(
                        ^
src/terminal.go:29:16: S1007: should use raw string (`...`) with regexp.MustCompile to avoid having to escape twice (gosimple)
        placeholder = regexp.MustCompile("\\\\?(?:{[+sf]*[0-9,-.]*}|{q}|{\\+?f?nf?})")
                      ^
src/terminal_test.go:92:10: S1007: should use raw string (`...`) with regexp.MustCompile to avoid having to escape twice (gosimple)
        regex = regexp.MustCompile("\\w+")
                ^

* Address warnings from "staticcheck" linter

src/algo/algo.go:374:2: SA4006: this value of `offset32` is never used (staticcheck)
        offset32, T := alloc32(offset32, slab, N)
        ^
src/algo/algo.go:456:2: SA4006: this value of `offset16` is never used (staticcheck)
        offset16, C := alloc16(offset16, slab, width*M)
        ^
src/tui/tui.go:119:2: SA9004: only the first constant in this group has an explicit type (staticcheck)
        colUndefined Color = -2
        ^
2019-11-05 09:46:51 +09:00
..
algo Improvements to code quality and readability (#1737) 2019-11-05 09:46:51 +09:00
tui Improvements to code quality and readability (#1737) 2019-11-05 09:46:51 +09:00
util Code cleanup (#1640) 2019-07-19 13:22:35 +09:00
ansi_test.go Always prepend ANSI reset code before re-assembling tokens 2019-03-07 15:29:57 +09:00
ansi.go Always prepend ANSI reset code before re-assembling tokens 2019-03-07 15:29:57 +09:00
cache_test.go Remove special nilItem 2017-08-15 01:10:41 +09:00
cache.go Consolidate Result and rank structs 2017-07-18 03:14:33 +09:00
chunklist_test.go Remove count field from ChunkList 2017-08-16 12:26:06 +09:00
chunklist.go Remove count field from ChunkList 2017-08-16 12:26:06 +09:00
constants.go --multi to take optional argument to limit the number of selection 2019-11-02 14:25:12 +09:00
core.go Always prepend ANSI reset code before re-assembling tokens 2019-03-07 15:29:57 +09:00
history_test.go Implement tcell-based renderer 2016-11-07 02:32:14 +09:00
history.go Code cleanup (#1640) 2019-07-19 13:22:35 +09:00
item_test.go Micro-optimizations 2016-08-19 02:39:32 +09:00
item.go Remove special nilItem 2017-08-15 01:10:41 +09:00
LICENSE 0.16.3 2017-01-30 01:53:17 +09:00
matcher.go Code cleanup (#1640) 2019-07-19 13:22:35 +09:00
merger_test.go Further reduce unnecessary rune array conversion 2017-07-21 17:31:11 +09:00
merger.go Remove special nilItem 2017-08-15 01:10:41 +09:00
options_test.go Make fzf pass go vet 2018-03-13 14:56:55 +09:00
options.go Improvements to code quality and readability (#1737) 2019-11-05 09:46:51 +09:00
pattern_test.go Make fzf pass go vet 2018-03-13 14:56:55 +09:00
pattern.go Inverse-only matches should not reorder the remaining results 2018-12-19 23:05:29 +09:00
reader_test.go Update FZF_DEFAULT_COMMAND 2017-09-28 23:05:02 +09:00
reader.go Kill running preview process after 500ms when focus has changed 2018-09-28 10:33:52 +09:00
result_others.go Optimize rank comparison on x86 (little-endian) 2017-08-27 01:46:11 +09:00
result_test.go Optimize rank comparison on x86 (little-endian) 2017-08-27 01:46:11 +09:00
result_x86.go Optimize rank comparison on x86 (little-endian) 2017-08-27 01:46:11 +09:00
result.go Improvements to code quality and readability (#1737) 2019-11-05 09:46:51 +09:00
terminal_test.go Improvements to code quality and readability (#1737) 2019-11-05 09:46:51 +09:00
terminal_unix.go Support CTRL-Z (SIGSTOP) 2017-04-28 22:58:08 +09:00
terminal_windows.go Support CTRL-Z (SIGSTOP) 2017-04-28 22:58:08 +09:00
terminal.go Improvements to code quality and readability (#1737) 2019-11-05 09:46:51 +09:00
tokenizer_test.go Code cleanup: remove unnecessary string conversions (#1642) 2019-07-19 13:23:18 +09:00
tokenizer.go Code cleanup (#1640) 2019-07-19 13:22:35 +09:00
update_assets.rb Update release script to upload assets in parallel 2017-01-22 18:33:30 +09:00