* 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>
* Update doc.md
Make the icon and colour configuration file more clear, as the names and locations of both files were not explicitly stated.
* Used a reference to the configuration section instead
Also edited the English for spelling and grammar mistakes.
* Enable completions and add description for lfcd.fish
A simple addition of `--wraps=lf` to the function definition will enable the standard lf completions to be used for `lfcd` function as well.
* Simplify lfcd.fish
* lfcd.fish: unquote $argv
* lfcd.fish: further simplify
* lfcd.fish: cd only on clean exit
* lfcd.fish: further simplify and add a coment on quoting semantics
* lfcd.fish: amend comment style
* add doc.md
* use h2 for doc sections
* use h3 for doc commands/options/vars
* use backticks instead of quotes in the doc
* merge multiple commands/options in the doc
* change header levels in the doc
* add man page sections to the doc
* remove extra spaces in headers in the doc
* add man and plain conversions of the doc
* update doc
* add missing flags to the doc
* replace the old documentation with the new one
* remove old doc files
* remove the doc instructions from CONTRIBUTING.md
* change the links to the doc
* shorten long links in the readme
The sixel implementation uses the Braille pattern blank character
(U+2800) as a filler character, which is problematic because U+2800
is not a proper Unicode whitespace character. This fix changes the
filler character to a proper Unicode whitespace character U+2000.
Quote from https://en.wikipedia.org/wiki/Whitespace_character:
"The Braille Patterns Unicode block contains U+2800 BRAILLE PATTERN
BLANK, a Braille pattern with no dots raised. Some fonts display the
character as a fixed-width blank, however the Unicode standard
explicitly states that it does not act as a space."
* 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
* add `cmd-delete-word-back`
Implementation of zsh-like backwards word deletion.
* add unixwords option and evaluate, short description in doc
* remove unixwords configuration option
* remove yank, bind delete word back to alt-backspace, update docs
* minor changes to docs
* small fixes
* add 'setlocal' for option 'sortby'
* save each local option separately
* add 'setlocal' for option 'reverse'
* add 'setlocal' for option 'dirfirst'
* add 'setlocal' for option 'hidden'
* add 'setlocal' for option 'dironly'
* add 'setlocal' for option 'info'
* add boolean toggling for 'setlocal' options
* check if the path is absolute for 'setlocal'
* add 'setlocal' options to completion
* add tests for 'setlocal'
* add 'setlocal' to the documentation
* use trailing '/' in 'setlocal' for subdir matching
* cleanup
* add 'setlocal' subdirs to the documentation
Implements a `fakeStat` struct with dummy values and stores the
error in `file.err`, then shows the error instead of FileInfo, if
the file is inaccesible.
Fixes#1359