Joe Lim
a89dd4448c
Fix shellopts bug
2023-06-18 15:21:19 +10:00
Joe Lim
3da2477937
Add shell in command line
2023-06-18 00:35:56 +10:00
Joe Lim
3b398d4aec
Improve windows shell handling
2023-06-18 00:24:06 +10:00
Joe Lim
e885abe1a3
Fix formatting of nlink on other platforms ( #1295 )
2023-06-10 11:50:02 +03:00
Joe Lim
2ab4b14e88
Add statfmt option ( #1288 )
...
* Add `fileinfofmt` option
* echof is now unused
* Use different default for Windows
* Add new line to docs
* Indent placeholders description in documentation
* Change option name to `statfmt`
* Use plain text format for documentation
2023-06-09 14:45:35 +03:00
Joe Lim
59f32193ae
Fix load issue when deleting files ( #1292 )
2023-06-08 19:38:23 +03:00
Joe Lim
07cf7dd1bd
Bound cursor position after terminal resize ( #1290 )
2023-06-08 17:17:32 +03:00
Joe Lim
027538eabf
Avoid refreshing previews for shell pipe commands ( #1281 )
2023-06-04 19:04:29 +03:00
Joe Lim
2c13e0d7d6
Add clearmaps command ( #1286 )
2023-06-04 18:56:39 +03:00
Joe Lim
c874a2c56f
Add doc to default keybindings in documentation ( #1285 )
2023-06-04 18:54:06 +03:00
Gokcehan
751788ee84
cleanup
...
cc #1279
2023-06-04 18:39:43 +03:00
Joe Lim
51d0fec017
Simplify run pager function ( #1279 )
...
* Simplify run pager function
* RunPagerOn
2023-06-04 18:38:38 +03:00
Joe Lim
7c33da2bc2
Refactor filename truncation code ( #1272 )
...
* Refactor filename truncation code
* Another refactor
2023-06-04 16:25:50 +03:00
Joe Lim
014d18d3ea
Fix runeSliceWidthRange implementation ( #1273 )
...
* Fix `runeSliceWidthRange` implementation
* Add empty test case
2023-06-04 16:22:46 +03:00
Joe Lim
c3d44123bb
Fix typo in misc tests ( #1270 )
2023-06-04 16:19:39 +03:00
Munif Tanjim
14fb8a0aac
Update icons.example for nerd-font v3 release ( #1271 )
...
ref: https://github.com/ryanoasis/nerd-fonts/releases/tag/v3.0.0
2023-06-04 16:16:54 +03:00
Jonáš Dujava
06d0a7eeac
Disallow exiting from 'filter' mode with backspace ( #1269 )
2023-06-04 16:14:19 +03:00
Ilya Grigoriev
9e1edcd9d3
No-op nesting reduction ( #1266 )
2023-06-04 16:06:58 +03:00
Ilya Grigoriev
b57d76bf97
cmds command to list all custom commands (aka cmd mappings) (#1265 )
...
This is a natural complement to the recently introduces `maps` and `cmaps`.
I considered using a different output format, since `cmd` definitions can be
long, but I decided against it for now. `lf` already abbreviates commands that
take up several lines, and we can change the output format later if needed.
2023-06-04 16:05:13 +03:00
Joe Lim
a9d90bc560
Cleanup import of times package ( #1262 )
2023-05-24 12:34:59 +03:00
Joe Lim
ae1c1389dd
Fix stable sort when reverse option is enabled ( #1261 )
2023-05-24 12:34:00 +03:00
Joe Lim
e08eebb115
Add support for displaying lf options in the ruler ( #1257 )
...
* Add support for displaying lf options in the ruler
* Print escape character as plain text
* Document user defined options
* Change escape rules
* Use reflect instead of environment table
* Factor out common option map logic
* Improve error message slightly
* Display blank option values
2023-05-24 12:30:38 +03:00
Gokcehan
0ac1491bfb
cleanup
...
cc #1026
2023-05-21 19:41:41 +03:00
raslop
fdb320d30c
preserve mtime when copying files ( #1026 )
...
* make it possible to preserve mtime and atime when copying files
Preserving other attributes like ownership, ctime or btime of a file is
desired but currently not possible to implement in a portable way with go.
Fixes #869
Relates to #779
* FIXUP use cp-compatible default for not-preserving mode
2023-05-21 19:41:01 +03:00
Joe Lim
24bba6288d
Bound cursor position when selecting file ( #1247 )
2023-05-21 15:14:43 +03:00
Joe Lim
5b934c2b91
Expand tilde during autocompletion ( #1246 )
2023-05-21 15:09:28 +03:00
Ilya Grigoriev
346c439f76
Refactor pager commands & synchronous shell commands (no-op) ( #1243 )
...
* Refactor piping to pager: extract to separate function, simplify invocation
This is meant to be straightforward and clearly a no-op,\
at the cost of being a bit verbose.
* Refactor: reduce duplication between sync shell commands and pager
* Refactor: minor cleanup of async shell functions
After the previous refactors, the logic for async shell commands can
be simplified somewhat. There is likely room for further improvements,
but that is beyond the scope of this PR.
* Remove duplicated shellSetPG invocation
See https://github.com/gokcehan/lf/pull/1243#discussion_r1193078282
2023-05-21 15:08:49 +03:00
Gokcehan
5bf78dc087
cleanup
...
cc #1253
2023-05-21 01:57:39 +03:00
Alok Mishra
8fee7f0927
LF_CONFIG_HOME environment variable ( #1253 )
...
* Added LF_CONFIG_HOME environment variable
* Added and generated documentation for LF_CONFIG_HOME
2023-05-21 01:53:55 +03:00
Joe Lim
3b942a8a39
Support custom colors for drawbox characters ( #1251 )
2023-05-20 17:53:05 +03:00
Joe Lim
1be7d2689a
Support modifiers in special key mappings ( #1248 )
...
* Support modifiers in mappings
* Update docs
* Support cmap keybindings as well
* Implement push
* Move order of escape key check
* Add safety check
* Fix safety check
* Factor out common logic
2023-05-20 17:37:39 +03:00
Joe Lim
88b3c999af
Fix count when parsing bottom command ( #1240 )
...
* Fix count when parsing `bottom` command
* Revert "Fix count when parsing `bottom` command"
This reverts commit a0b6bb5a13 .
* Alternate implementation
* Add comment
r30
2023-05-13 16:58:21 +03:00
Joe Lim
24e224ca65
Add jumps command for displaying the jump list ( #1233 )
...
* Add `jumps` command for displaying the jump list
* Mention jump count in documentation
* Reverse order
2023-05-13 16:43:08 +03:00
Joe Lim
2a5c54c81a
Minor cleanup of reflect code ( #1229 )
2023-05-13 16:30:19 +03:00
dependabot[bot]
db46fb2b37
Bump golang.org/x/term from 0.7.0 to 0.8.0 ( #1225 )
...
Bumps [golang.org/x/term](https://github.com/golang/term ) from 0.7.0 to 0.8.0.
- [Commits](https://github.com/golang/term/compare/v0.7.0...v0.8.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/term
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-13 16:28:33 +03:00
dependabot[bot]
f036e07a5c
Bump golang.org/x/sys from 0.7.0 to 0.8.0 ( #1224 )
...
Bumps [golang.org/x/sys](https://github.com/golang/sys ) from 0.7.0 to 0.8.0.
- [Commits](https://github.com/golang/sys/compare/v0.7.0...v0.8.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/sys
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-13 16:18:31 +03:00
Joe Lim
8f630e0cab
Separate filter from selections in the ui ruler ( #1223 )
2023-05-13 14:19:50 +03:00
Joe Lim
35990bed12
Prevent scrolling to bottom when selecting files ( #1222 )
...
* Prevent scrolling to bottom when selecting files
* Use nav.currDir()
2023-05-13 13:58:03 +03:00
Gokcehan
f04401ba4d
build diskfree on all platforms
...
cc #1168
2023-04-30 22:10:15 +03:00
Gokcehan
2c86577b95
update doc
...
cc #1176
r29
2023-04-30 16:40:52 +03:00
Joe Lim
4dbc15e4b0
Validate selmode setting ( #1206 )
2023-04-15 19:52:37 +03:00
Joe Lim
c0dfb3c4f5
Fix statusbar spacing ( #1205 )
...
* Fix statusbar spacing
* Fix ruler option check
2023-04-15 19:51:51 +03:00
Gokcehan
55ad40ac0a
add 'ruler' to completion
...
cc #1168
2023-04-09 14:58:11 +03:00
Gokcehan
c1583032aa
update doc
...
cc #1168
2023-04-09 14:54:41 +03:00
rrveex and rr
eb84772032
Customizable statusline, df ( #1168 )
...
* opts statusline, df
* renamed infostat -> ruler; removed os_lin, os_bsd
* removed vscode
---------
Co-authored-by: rr <rr@arveex.eu >
2023-04-09 14:50:34 +03:00
Joe Lim
821b2fcd51
Fix crash when sorting files in a directory ( #1204 )
2023-04-09 14:32:40 +03:00
Joe Lim
734f11d61b
Simplify edge calculation when scrolling down ( #1194 )
...
* Simplify edge calculation when scrolling down
* Alternate implementation
* Alternate implementation #2
2023-04-09 14:23:43 +03:00
RuMaks
28b550a7ec
Use $VISUAL for the e command instead of $EDITOR ( #1197 )
...
* Use $VISUAL for the `e` command instead of $EDITOR
* update `os_windows.go` and `doc.go`
2023-04-09 01:44:09 +03:00
Ilya Grigoriev
1e1486fc02
Make :maps work on Windows and add :cmaps. ( #1201 )
...
* Make `:maps` work on Windows
This makes the `:maps` command from #1146 work on Windows.
This (as well as `:maps` itself) is based on @jackielli's work in #1146 and
#1152 .
I intend to refactor the code in this or a separate PR, but I thought I'd
submit the critical and simple bit first.
* Add `:cmaps` command
After the naming scheme from #1146 , it would seem weird to not have a :cmaps
command. This could help with issues like #876 .
2023-04-09 00:51:52 +03:00
dependabot[bot]
bb45d15b83
Bump golang.org/x/term from 0.6.0 to 0.7.0 ( #1198 )
...
Bumps [golang.org/x/term](https://github.com/golang/term ) from 0.6.0 to 0.7.0.
- [Release notes](https://github.com/golang/term/releases )
- [Commits](https://github.com/golang/term/compare/v0.6.0...v0.7.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/term
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-08 23:40:31 +03:00