Commit Graph

25 Commits

Author SHA1 Message Date
Gokcehan
24489924b7 avoid memory allocations in natural sorting 2020-11-06 15:14:38 +03:00
Gokcehan
f877960661 go fmt 2020-11-06 15:14:26 +03:00
2pac
17ed724e67
Completition menu cycling #72 (#482)
* utility modulus function

* ui adapt for tab menu cycle

* refactor(listMatches) for tab menu cycle

* refactor(draw) handle tab menu selection highlight

* refactor(eval) cmd-complete cycle + reset handles

* feat: added backtab counter-cycle in the completition menu

* cleanup

* docs changes

* refactor: make tab cycle own commands

* docs: tab cycle documentation

* bug: the matches list was not complete because index +2 after row end

* refactor(tab cycle): handle the complete menu command print

* refactor(tab cycle): make the cmdTmp varibale mymic cmdAccLeft + check for partial commands

* refactor(tab cycle): fix how to handle the menu completiton from different events

* fix(tab cycle): fix cmd-complete so that it works with new tab cycle commands

* style: changed puprle to reverse

* cleaned up cycle logic + reverted listMatches

* cleaned up eval logic for cycle feat.

* cleanup

Co-authored-by: 2pac <tarasyarema@pm.me>
2020-10-14 19:42:44 +03:00
Gokcehan
0e3910652a cleanup 2020-06-11 04:11:40 +03:00
gotroyb127
41e0bb32cd
fix tilde expansion and numbering (#373)
* Fixed issue #346 and changed the format of numbers when both relativenumber and number are set.

* Fixed issue #349 (incorrect replacement of '~' with user's home direcotry).

* Changed where appropriate so that tilde replacements happens correctly.

* Added a function to replace tilde with user's home directory, only when it should.

* Renamed ReplaceTilde to replaceTilde so that it won't get exported and removed some ';' at the end of some lines.
2020-06-07 20:53:25 +03:00
Gokcehan
0482340d5e keep trailing backslash during reverse escape 2019-10-25 20:50:00 +03:00
Gokcehan
7a4d1cc275 escape special characters with backslash 2019-10-25 20:17:49 +03:00
Gokcehan
9656553974 cleanup 2019-03-03 22:29:34 +03:00
Gokcehan
a85e0da9b0 cleanup 2018-05-20 20:30:41 +03:00
Gokcehan
de39594a46 add 'cmd-transpose-word' to swap words 2018-05-14 19:38:35 +03:00
Gokcehan
ef709b5611 implement 'cmd-word' and 'cmd-word-back' commands
Related #67
2018-05-05 19:37:14 +03:00
Gokcehan
9b7bf63096 cleanup 2017-11-19 21:55:13 +03:00
Gokcehan
90e3a22dc8 add a 'B' suffix to files under a thousand bytes
Mentioned in #49.
2017-01-08 19:24:28 +03:00
Gokcehan
af113e71ef fill with spaces instead of null chars 2016-12-22 22:58:55 +03:00
Gokcehan
8ae5f838c7 simplify number extraction using regexp 2016-12-18 00:02:30 +03:00
Gokcehan
225bd5b49c fix number extraction ending with number 2016-12-03 00:38:23 +03:00
Gokcehan
932e644c93 handle escapes in completions 2016-12-03 00:28:25 +03:00
Gokcehan
d67054a000 replace /x/text package with mattn/go-runewidth
Mentioned in #35.
2016-11-14 01:35:34 +03:00
Gokcehan
609c637e82 move file sorting to nav 2016-11-11 00:18:56 +03:00
Karol Woźniak
a4c395a4de Refactor sorting types to only implement Len and Swap once (#43)
Using "trick" similar to `sort.Slice` that's comming in `go1.8`.
2016-11-10 01:01:30 +03:00
Gokcehan
a2cc32c908 implement a send command for remove commands
Mentioned in #36.
2016-11-06 17:06:25 +03:00
Gokcehan
667253906b handle unicode in the ui
Mentioned in #30 and #32.
2016-10-20 23:45:06 +03:00
Gokcehan
3d493e8271 use filepath module instead of path for portability
This should fix path separator confusion in windows.

Mentioned in #12.
2016-09-07 00:27:55 +03:00
Gokcehan
e45562b282 add misc tests 2016-08-14 22:56:55 +03:00
Gokcehan
4b266c97e9 initial commit 2016-08-13 15:49:04 +03:00