- Add functionality for visually selecting files
- Add keymap for Visual mode, and supporting `nmap` and `vmap` commands
- Add mode column for `maps` command, also add `nmaps` and `vmaps` commands
- Add `visualfmt` option for configuring appearance for the visual selection
- Add `%m/%M` placeholders for displaying the mode
- Add marker indicating the number of visually selected files in the ruler
- Add `visual` as an identifier when exporting `lf_mode`
- Remove experimental `invert-below` command
* Make sixel output flicker free
* Address pr comments
* Lock regions based on sixel dimensions
This fixes issues related to clearing the previous sixel data
* name changes and extra error handeling
* Apply force clearing changes and change log messages
* Delete missleading comment
* check pixel dimensions
* correct cell dimensions checking
* Add force clearing on image update
---------
Co-authored-by: Mariusz Kuchta <mariusz@kuchta.dev>
* add drawbinds option
* rename drawbinds to showbinds and change its place in docs
* minor changes in wording of showbinds option
* fix missing newlines
---------
Co-authored-by: yarik <dazzywi@github.com>
* Invalidate cache for recreated files
* Sanity check for file updates
* Prevent load when watching
* Revert "Prevent load when watching"
This reverts commit 4cf4629a87.
* Load is redundant when watch is enabled
* Add watch option
* Implement directory changes
* Implement file changes
* Fix for dircounts
* Remove test code
* fix dircounts
* Set watches on cd instead of select
* Set watches on startup too
* Watch newly created directories
* Add chmod events
* Avoid using multiple threads
Seems to cause issues if there are multiple threads and each one of them
is loading the same new file, in which case there is a race condition.
* Reduce logic when updating files
* Throttle write updates
* Use timer instead of ticker
* Fix file write out-of-band timing issue
* Fix cursor when renaming
* Prevent file showing at bottom during rename
* Watch new directory when created
* Revert "Watch new directory when created"
This reverts commit 6856804313.
* Reapply "Watch new directory when created"
This reverts commit 1c29f34981.
* Try batching renew updates
* Big rewrite
* Reload individual directories
* Change delay to 100 milliseconds
* Use separate goroutine for loading files/dirs
* Fix filter resetting
* Add documentation
* 1
* globsearch
* hidden
* some more options
* ignorecase and ignoredia
* fix ignorecase/ignoredia
turns out position and loadfile are required here too since the list of
files can change (similar to hidden option)
* incfilter/incsearch
* mouse
* some more options
* preview
* remaining bool options
* fix more options that can change list of files
* Add applyLocalBoolOpt
* Use applyLocalBoolOpt
* Add position and loadfile fixes
* made sortMethod a string enum to reduce comparisons and repetition
* main uses sortmethod directly instead of converting it into a string
* updated sortmethod validity check to no longer require slices package
* Update opts.go
Co-authored-by: Joe Lim <50560759+joelim-work@users.noreply.github.com>
---------
Co-authored-by: Joe Lim <50560759+joelim-work@users.noreply.github.com>
* Export user-options when they are evaluated
If one has an external previewer that uses an lf user-option (e.g.
"preview-mode") and some key-kindings that change this user-option (e.g.
to "hex", "simple", "fancy") and send a "reload" command to lf, then the
expectation after pressing the keys is, that the prewiever is called
with an updated value of the user-option. Though this did not happen
since #1354, as this caused random crashes.
This change exports user-defined options immediately when they are
evaluated.
* Fix: Add explaining comment
* Implement recv mechanism
* Implement recv commands
* Add mutex for state data structure
* Use string to store data instead of byte buffer
* Remove runPagerOn function
* Add history command
* Add documentation
* Add default `maps` command
* Add default `cmds` command
* Reduce locking time
* Remove empty line
* Fix documentation for `recv`
* Add comment about `recv` thread
* Change `recv` to `query`
* Fix comment
* test
* Add comment about connection lifetime
* Map `cmaps` by default