53 Commits
Author SHA1 Message Date
CatsDeservePets a949d4a5d1 Unify [y/N] prompts (#2212) 2025-10-19 05:51:56 +02:00
valoqandJoe Lim b087bf7d80 verify the Trash directory exists before moving files there (#1918)
* verify the Trash directory exists before moving files there

* Update etc/lfrc.example

Co-authored-by: Joe Lim <50560759+joelim-work@users.noreply.github.com>

---------

Co-authored-by: Joe Lim <50560759+joelim-work@users.noreply.github.com>
2025-02-19 10:38:33 +11:00
Ilya Grigoriev 27d316c006 lfrc.example: Add mkdir, add "show execution result" (#1188)
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.
2023-04-08 22:35:39 +03:00
Ilya Grigoriev 530ab2c40a Allow separate styles for cursor in normal and preview panes, simplify tagfmt and errorfmt (#1086)
* 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/1072
https://github.com/gokcehan/lf/pull/924
https://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.
2023-02-11 20:11:07 +03:00
Gokcehan 4440a15a8c add the current example open command to the doc
cc #991
2022-11-15 21:26:30 +03:00
devnull09 887748cefd Avoids flicker during open (#991)
* Avoids flicker during open

* Update lfrc.example

remove setsid after we execute is with open &{{ anyway
2022-11-15 21:07:30 +03:00
Paul Ouellette 5ba70d0f61 Documentation fixes and updates (#933)
- 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
2022-10-01 16:29:21 +03:00
tucuxi b0f2a2875a handle empty answer in delete (#809)
* handle empty answer in delete

* handle empty answer in delete
2022-05-08 14:53:34 +03:00
Gokcehan 5d02b557d3 follow links in 'open' examples
cc #634
2021-05-22 01:46:13 +03:00
Gokcehan 91f40b1f02 update example config 2021-03-03 18:06:44 +03:00
Gokcehan ff4c36565c mention setsid in the documentation
Related #148 and #233
2019-10-07 20:23:08 +03:00
Gokcehan 9f661344ed allow defining a custom rename command 2019-07-21 20:40:57 +03:00
Gokcehan e3bc11408f update example configuration 2019-03-20 21:45:09 +03:00
Gokcehan d86e9c991c add 'doc' command to view documentation
Related #100
2018-07-07 17:50:47 +03:00
Gokcehan b8523c3258 rename 'remove' to 'delete' in example config 2018-06-28 21:55:56 +03:00
Gokcehan 4cbb211757 use env vars in example config 2018-06-28 21:53:42 +03:00
Gokcehan 96f35e986d rename 'open-file' to 'open' 2018-06-28 21:20:43 +03:00
Gokcehan d987c9e439 rename yank-delete-put to copy-cut-paste 2018-06-27 21:17:56 +03:00
Gokcehan b67b042d43 add shell options to example config 2018-06-26 22:24:41 +03:00
Gokcehan 01581f902f update documentation 2018-04-06 22:49:50 +03:00
Gokcehan 68232c06e3 rename 'read-shell' to 'shell' in shell commands 2018-03-27 21:23:34 +03:00
Gokcehan c3f4aa58a7 add default file opener and more keybindings
Related #9 and #94
2018-03-02 23:21:52 +03:00
Gokcehan 6c0f794a94 use relative path for default shell on unix
Related #58
2018-02-17 20:04:30 +03:00
Gokcehan 460ccbea4a fix lfcd path in example config 2017-10-22 17:38:19 +03:00
Gokcehan 7c15ed69c8 remove backup option from default cp/mv for posix 2017-09-16 22:11:43 +03:00
Gokcehan 1df7ca3408 cleanup 2017-09-08 23:46:31 +03:00
Gokcehan 3e0361911b move column example to wiki 2017-09-07 23:30:48 +03:00
Gokcehan 33dad5e5ff move mc example to wiki 2017-09-07 23:24:52 +03:00
Gokcehan 422cd6b459 change default file separator to newline
Mentioned in #47.
2017-09-07 23:01:57 +03:00
Gokcehan dbb250d232 use fib numbers as ratios in the example config 2017-02-25 19:28:57 +03:00
Gokcehan 96797f2487 add example remove command 2017-02-11 16:28:45 +03:00
Gokcehan de1168fb96 add documentation for remote commands
Mentioned in #36.
2017-02-11 16:14:41 +03:00
Gokcehan 56d80e2074 update example config 2017-02-11 14:52:28 +03:00
Gokcehan c55c4bf254 rename showinfo option to info
Related to #39.
2017-02-04 21:33:36 +03:00
Gokcehan d605781d09 modify showinfo to handle multiple values
Mentioned in #39.
2017-02-04 21:28:03 +03:00
Gokcehan 7c800cc373 fix output redirections for open-file example 2017-01-07 18:13:21 +03:00
Gokcehan 79ca4cfe9d use /bin/sh as the default for shell option
Mentioned in #58.
2016-12-27 19:05:41 +03:00
Gokcehan a3965ca1d9 handle keys of push command while scanning 2016-10-15 21:46:31 +03:00
Gokcehan cecd3f9904 parse list expressions without extra semicolon 2016-10-15 15:56:53 +03:00
Gokcehan 00516af039 fix push with command example 2016-09-20 23:18:39 +03:00
Gokcehan 27135faccd add a push command to simulate key pushes 2016-09-18 19:21:24 +03:00
Gokcehan bfb0c0c4a8 add example mapping for documentation 2016-09-14 00:49:02 +03:00
Gokcehan c93738a6ec cleanup 2016-09-07 01:47:08 +03:00
Gokcehan f356e6d694 handle all keys for mappings
Mentioned in #1.
2016-08-28 18:21:42 +03:00
Gokcehan e86b8b34bd cleanup 2016-08-28 03:48:58 +03:00
Gokcehan 2c70ad5fb5 organize lfrc.example 2016-08-27 17:17:20 +03:00
Gokcehan ce25fc55ca add an option to configure shell used by commands 2016-08-27 14:12:03 +03:00
Gokcehan e8dc85527e use skipping command for open with using mimeopen in lfrc.example
Mentioned in #8.
2016-08-27 00:28:17 +03:00
Gokcehan d712e6b247 add shell spawn example to lfrc.example
Mentioned in #8.
2016-08-27 00:24:51 +03:00
Gokcehan a765a126fe fix ifs option in lfrc.example 2016-08-25 01:13:45 +03:00