1) add `/d` to cd command for moving other drive
2) change code page number to read non-english output of `lf -print-last-dir` although current code page is 949
* Leave a note on how to add shell completions for `lfcd` in ZSH
* Revert "Leave a note on how to add shell completions for `lfcd` in ZSH"
@joelim-work suggested a better idea: to make `lf.zsh` complete both `lf` and `lfcd`
This reverts commit c28393dd43.
* Make `lf.zsh` complete both `lf` and `lfcd`
* 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
* Added autocompletion and a simple lfcd script for nushell.
* nu-lfcd script & small style improvements. Moved the autocompletion to a seperate file.
* Update lfcd.nu to print to stderr instead of stdout
* Fixed the comments inside lf.nu
Show how to map `a` to mkdir. `` ` `` maps to "show execution
result". Norton Commander & its successors map it to `<c-o>`,
but I think that's better for something opening-relatred.
Whenever a `$` command gives an unexpected error, I want to see
what happened. There are many ways to do so, but the one I added
here seems the simplest and it took me a while to think of it.
We could also have an option to have `$` commands pause like `!`
commands when there's an error.
* Allow separate styles for cursor in normal and preview panes
This defines new `cursorfmt` and `crusorpreviewfmt` options to style cursor in normal/preview panes. This allows using a different style for the normal and preview cursor. The documentation includes several possible values these options can be set to.
The default behavior is an underline, same as in
https://github.com/gokcehan/lf/pull/1072, since it should not cause severe
problems and be visible on all terminals. It can now be easily changed, as explained in the docs. I also added an example to `etc/lfrc.example`.
See linked issues and PRs for the more context.
Fixes https://github.com/gokcehan/lf/issues/1038
Follows up on:
https://github.com/gokcehan/lf/pull/1072https://github.com/gokcehan/lf/pull/924https://github.com/gokcehan/lf/commit/b47cf6d5a5
* Simplify configuration of several formatting options
This simplifies the configuration of `cursorfmt`, `cursorpreviewfmt`, `tagfmt`,
and `errorfmt` options.
In almost all usecases, the value of these options had to end with `%s\033[0m`
to print the contents of filename/tag/error and reset the terminal style. Now,
if `%s` is not part of the option's value, `%s\033[0m` is appended
automatically. This simplifies configuration.
I retained the same behavior as before when `%s` is part of the string for
backwards compatibility. I think it should be considered deprecated, but it
also causes no harm.
- Document history option
- Use $() command substitution syntax because backticks are replaced
with quotes in gen/docstring.sh
- Movement commands no longer close the search prompt (85aa3b9)
- Use the -L flag of the file command instead of readlink