Commit Graph
729 Commits
Author SHA1 Message Date
neeshy 3f66f08b84 Exhaust queued entries in previewChan prior to calling preview script (#562)
* Use ranged for loop over channel

And rename variable "path" to "prev"

* Exhaust queued entries in previewChan prior to calling preview script
2021-01-19 04:42:01 +03:00
Gokcehan cb6ae713b4 update readme 2021-01-19 01:53:13 +03:00
Gokcehan e0317611ef avoid loading redundant previews for top/bottom
cc #531
2021-01-19 01:47:09 +03:00
Gokcehan 7481040c2d enable top/bottom in cmap mappings 2021-01-19 01:45:42 +03:00
Gokcehan a13c14fb07 add support for mouse buttons and wheels
cc #268
2021-01-19 01:20:34 +03:00
Gokcehan af988284a4 update doc 2021-01-18 23:44:26 +03:00
Gokcehan f54acae958 avoid loading redundant previews for up/down
cc #531
2021-01-18 21:30:52 +03:00
Gokcehan 2af2c6de31 fix tab character when printing
cc #496
2021-01-18 21:27:34 +03:00
Gokcehan d6c5590ad0 display combining characters in the text
cc #496
2021-01-18 20:48:31 +03:00
gotroyb127 d27748e9b5 minor doc fix (#560)
Related #545
2021-01-18 19:02:51 +03:00
Gokcehan 1f9c0b1d4c update doc 2021-01-11 00:42:47 +03:00
Gokcehan 2e4ed8f867 fix default promptfmt to use %d instead of %w
cc #545
2021-01-11 00:40:14 +03:00
SPFab 07d42c9a80 Added new Promptfmt Option to remove trailing separator (#545)
* Added new Promptfmt Option to remove trailing seperator

* Small fix

* small fix with multiple format options
also renamed the format options
2021-01-11 00:37:41 +03:00
Gokcehan 9f8bbe26e2 add trailing star to match names for colors/icons
cc #543
2021-01-07 01:17:56 +03:00
Marius 8e09df5969 Allow multiple -command flags (#552) 2021-01-07 01:10:54 +03:00
neeshy b5f6f6edee Don't redraw volatile previews on ticker period (#546) 2021-01-04 17:01:29 +03:00
Eduard Ganiukov d62dd9353f client: use PID as a client ID (#550)
Fixes: #549
2021-01-03 01:58:01 +03:00
Gokcehan 42eb27823e consider icons/numbers when showing info
cc #548
2021-01-03 01:53:06 +03:00
Gokcehan ab6c00c73d update doc
cc #531
2021-01-03 01:35:30 +03:00
Gokcehan bfa527fcea fix order of color/icon matches
cc #543
2021-01-03 01:02:40 +03:00
neeshy 1e94f4533e Guarantee preview/previewClear ordering (#537)
* Use chan struct{} in place of chan bool

* Revert "nav.checkReg now returns a boolean instead of calling nav.preview"

* Guarantee preview/previewClear ordering

* Pass the file path to the cleaner script
2020-12-27 04:23:03 +03:00
Gokcehan 72567c9237 update doc
Related #505
2020-12-27 03:27:33 +03:00
Gokcehan 3b78309b89 parse LF_COLORS variable for lf specific colors 2020-12-26 21:25:35 +03:00
Gokcehan d81b9eb858 parse env variables cumulatively for colors/icons 2020-12-26 21:24:35 +03:00
Gokcehan ae79db38da cleanup 2020-12-26 21:14:06 +03:00
Gokcehan 99d6b7fd44 match extension before type for colors/icons
Related #505
2020-12-26 20:39:41 +03:00
Marius 3dc7ec69ba make sortby ext work as expected (#539) 2020-12-26 16:36:43 +03:00
neeshy 82f03102a5 Add ability to use image previewers (#531)
* Return early on error in nav.preview

* nav.checkReg now returns a boolean instead of calling nav.preview

* Pass width, height, x, and y parameters to preview script

* Check previewer for exit code

If non-zero the preview will be assumed to have side-effects.

* Add the cleaner option

This is called upon selection changes if the previous preview was
volatile. To this end, volatilePreview was added to the nav struct
2020-12-24 16:13:20 +03:00
Gokcehan c2fe88e9a0 cleanup 2020-12-24 15:49:01 +03:00
sitiom f7c504493f Add PowerShell autocompletion script (#535)
* Add PowerShell autocompletion script

* Update lf.ps1
2020-12-24 15:45:12 +03:00
Gokcehan 42ef82b2c8 only clean full paths for colors/icons
Related #505
2020-12-24 15:42:36 +03:00
Gokcehan 9255408000 clean path in patterns in colors/icons
Related #505
2020-12-24 03:30:11 +03:00
Gokcehan e4e11e5507 update fish keybinding example
Related #499
2020-12-24 02:44:08 +03:00
Gokcehan eedcc258c2 cleanup 2020-12-24 02:28:25 +03:00
sitiom e7f5f90b0c Add PowerShell keybinding example for lfcd (#532)
* Add PowerShell keybinding example

* Update lfcd.ps1
2020-12-24 01:21:35 +03:00
Gokcehan de691bf4e8 match trailing slash as dirs in colors/icons
Related #505 #506
2020-12-24 01:04:13 +03:00
Gokcehan 1aed76c10d match path/name/base patterns in colors/icons
Related #505 #506
2020-12-23 04:55:10 +03:00
Gokcehan 4438721488 fix build on windows r18 2020-12-19 18:05:21 +03:00
Gokcehan 9e5d386304 golint 2020-12-19 17:56:27 +03:00
Gokcehan ed5104cfdb update doc 2020-12-19 17:25:44 +03:00
Gokcehan fd688c675b remove deprecated color256 option 2020-12-19 16:59:09 +03:00
Gokcehan 851e079a82 Fix colors for BSD style LSCOLORS for tcell/v2
Related #526
2020-12-19 02:11:38 +03:00
Gokcehan cae9ada56c update doc 2020-12-11 17:07:34 +03:00
Gokcehan 6f525ba047 cleanup 2020-12-11 16:47:56 +03:00
Gokcehan f9382f72d4 update doc 2020-12-11 16:36:03 +03:00
neeshy c1814c8a4e Fix issue on *NIX where server dies when controlling terminal is closed (#517) 2020-12-11 16:34:11 +03:00
Gokcehan 90b3b166e1 import tcell/v2 from gitlab.com/Provessor/lfp 2020-12-04 23:59:12 +03:00
Marius 73d1a81d85 Fix default promptfmt in documentation (#509)
%w already has a trailing slash
see: https://github.com/gokcehan/lf/blob/f68406b93c35fcb8abfdbb3768192b4d15a25d52/opts.go#L92
2020-11-27 22:12:55 +03:00
Gokcehan 5d204a1331 avoid reloading previews modified in the future
Related #453
2020-11-25 23:43:30 +03:00
Gokcehan 654a14ea7d lazy drawing in shell-pipe commands 2020-11-23 00:13:31 +03:00