Commit Graph

166 Commits

Author SHA1 Message Date
Gokcehan
3e403bb888 update sigpipe error fix in the doc 2021-02-06 00:19:09 +03:00
Gokcehan
13d19d84f9 add 'mouse' option to enable/disable mouse events
cc #268 #570
2021-01-29 19:36:27 +03:00
Gokcehan
ea1ff74e55 update doc 2021-01-24 16:33:49 +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
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
Gokcehan
9f8bbe26e2 add trailing star to match names for colors/icons
cc #543
2021-01-07 01:17:56 +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
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
ed5104cfdb update doc 2020-12-19 17:25:44 +03:00
Gokcehan
cae9ada56c update doc 2020-12-11 17:07:34 +03:00
Gokcehan
f9382f72d4 update doc 2020-12-11 16:36:03 +03:00
Gokcehan
8eb596c670 update doc
Related #499
2020-11-06 20:25:31 +03:00
Gokcehan
c2f2d54cee apply 'ignorecase' and 'ignoredia' to sorting
Related #320
2020-11-06 16:02:58 +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
228a20ffd1 rename bs to backspace 2020-10-10 17:34:29 +03:00
Gokcehan
4c89535e18 add descriptions of variables to the documentation 2020-10-02 23:37:39 +03:00
Gokcehan
969dee3621 add descriptions of options to the documentation
Related #321
2020-09-24 02:00:36 +03:00
Gokcehan
36798b4c24 update doc
Related #469
2020-09-22 04:22:08 +03:00
Gokcehan
76c85d9459 add descriptions of cmds to the documentation
Related #321
2020-09-13 18:14:25 +03:00
Gokcehan
355075cf75 cleanup 2020-09-13 14:55:17 +03:00
Provessor
24f01f4988
Replace termbox-go with tcell (#439)
Fix colour construction issue

This also has a test to mitigate it in the future

Remove `colormode` option

The original issue it was trying to solve is no longer present with
tcell (it being a holdover from `color256` on termbox) so it is not
needed.

retire gitter channel in favor of irc/matrix

Export options as environment variables (#448)

* Export options as environment variables

Any options from gOpts are available via lf_OPTION environment
variables. For now it works only on booleans, integers and strings (no
array support)

* Do not export some of the options

* Add support for arrays and fix numbers

* Fix comments

* Replace 1 and 0 with true and false

* Export hidden,reverse,dirfirst and sortby options

* Fix comments

* Little fix

* Simplify boolean conversion

log readlink errors instead of fail

Related #447 and #374
2020-09-01 15:42:44 +03:00
Gokcehan
d25faf7186 add descriptions of commands to the documentation
Related #321
2020-09-01 00:00:38 +03:00
Gokcehan
2b445aa205 update doc 2020-07-26 00:29:50 +03:00
Gokcehan
f8daa60b31 expand '%w' in 'promptfmt' with a trailing slash
Related #421
2020-07-20 00:19:42 +03:00
Alexey Yerin
d0cd181eb6
Ability to customize filename truncating (#417)
* Add truncatechar option

* Add ability to set truncatechar via `set` command

* Add completion for truncatechar option

* Actually use truncatechar option when truncating

* Add truncatechar option to docs
2020-07-18 03:08:25 +03:00
gotroyb127
75e59cdd08
'toggle' command now toggles selection on its arguments when at least one (#409)
* 'toggle' command now toggles selection on its arguments when given and some cleanup

* update doc
2020-07-14 19:28:01 +03:00
Gokcehan
fd73a53f84 update doc
Related #352 and #386
2020-06-17 06:35:28 +03:00
Gokcehan
0e3910652a cleanup 2020-06-11 04:11:40 +03:00
Gokcehan
c5d05b7683 add 'on-cd' to the documentation
Related #291
2020-04-13 17:58:03 +03:00
Gokcehan
ff4c36565c mention setsid in the documentation
Related #148 and #233
2019-10-07 20:23:08 +03:00
Gokcehan
bc33f3154a cleanup 2019-10-04 21:49:18 +03:00
Kennedy Mwenja
9991a40e87 Sort by file extensions (#230)
- preserve natural ordering of filenames if extensions are the same
  or are missing
- files without extensions rank higher on ascending sort and lower
  on descending sort
2019-10-04 21:44:52 +03:00
Kennedy Mwenja
9515bd73d0 Sort By Access Time and Change Time (#226)
- Add access time and change time as sort by types. This is
  powered by github.com/djherbis/times.
- Fall back to modification time if access time and change time
  cannot be determined.
- Add `sa` and `sc` as default bindings for sort by access time and
  sort by change time respectively.
- Add access time and change time to info types allowing them to be
  displayed by the file list in the ui
2019-09-18 21:52:30 +03:00
Gokcehan
488bf9f6b6 cleanup 2019-07-30 17:06:11 +03:00
Juris Arturs Majors
bfd01e5ed8 draft rename (#197)
*  basic structure

* working rename, without making dir's and selection change

* mkdirAll if necessary

* updated TODO's

* rename with replace prompting

* path prompt and moved functionality to nav.rename()

* renewing now (no set period is needed)

* documentation, keybidning change, load file info after renaming

* go generate
2019-07-20 19:31:19 +03:00
Gokcehan
db224f04fe add icon support
Related #158 and #164
2019-06-28 18:08:11 +03:00
Juris Arturs Majors
16db95707e Mark clear (#190)
* markclear

* Revert "markclear"

This reverts commit 5e3a188618cb02f7aa284e9f2c9a00ed8ce3dc14.

* Revert "Revert "markclear""

This reverts commit a7a3bfebbf99c10b4a09f197fa997eca461369c4.

* markclear with arguments

* docs

* reverted some whitepsace

* some inline comments

* additional error handling

* wrong argument case

* consider case when argument specified clears all marks

* code cleanup and removed readMarks from writeMarks

* indentation :/

* discussed changes implemnted

* return readMarks error in sync()

* remove reset marks
2019-06-25 21:38:34 +03:00
Juris Arturs Majors
bf39c7c63b glob-select implementation (#184)
* glob-select logical implementation

* documentation

* indentation

* indentation

* indentation

* save

* merge glob selects

* check if selected before toggling

* glob-unselect

* identation ...

* return early
2019-06-20 18:17:47 +03:00
Gokcehan
a5199960ed update documentation 2019-05-14 20:27:16 +03:00
David Pedersen
e815adc6a6 Add Wrap Scroll functionality. Fixes #126 (#166) 2019-05-12 17:21:45 +03:00
Gokcehan
791b704257 add 'errorfmt' option to format error messages
Related #154
2019-03-27 22:07:41 +03:00
Gokcehan
866a7e6a2b cleanup 2019-03-13 22:28:20 +03:00
Gokcehan
1956a759c4 cleanup 2019-03-04 00:05:29 +03:00