Joe Lim
1c29f34981
Revert "Watch new directory when created"
...
This reverts commit 6856804313 .
2024-04-22 11:45:46 +10:00
Joe Lim
6856804313
Watch new directory when created
2024-04-22 11:40:33 +10:00
Joe Lim
089c540d75
Fix file write out-of-band timing issue
2024-04-10 23:03:14 +10:00
Joe Lim
9c0afc56c4
Merge branch 'master' into fsnotify
2024-04-08 10:44:09 +10:00
Joe Lim
ce12116418
Run on-quit when terminal closes ( #1681 )
2024-04-07 15:47:49 +02:00
Joe Lim
be9113e64a
Use timer instead of ticker
2024-04-05 17:12:24 +11:00
Joe Lim
33f7204c49
Throttle write updates
2024-04-05 12:45:55 +11:00
Joe Lim
4f898cd1fa
Reduce logic when updating files
2024-04-04 21:42:30 +11:00
Joe Lim
76aacc708b
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.
2024-04-04 17:16:45 +11:00
Joe Lim
ced735a187
Add chmod events
2024-04-02 10:58:14 +11:00
Joe Lim
ac016fee16
Skip drawing UI for period timer ( #1666 )
2024-03-31 21:19:16 +02:00
Joe Lim
bdc9ba0df7
Watch newly created directories
2024-03-31 23:01:58 +11:00
Joe Lim
ad38761a76
Set watches on startup too
2024-03-31 22:56:58 +11:00
Joe Lim
7ce0756e22
Fix for dircounts
2024-03-30 21:09:46 +11:00
Joe Lim
574513adfb
Implement file changes
2024-03-30 20:43:08 +11:00
Joe Lim
20646bf31a
Implement directory changes
2024-03-30 19:57:25 +11:00
Joe Lim
1e10e95f4d
Revert "Trigger update after copy/move ( #1638 )" ( #1661 )
...
This reverts commit ddcd308614 .
2024-03-26 18:52:14 +11:00
valoq
ddcd308614
Trigger update after copy/move ( #1638 )
...
* trigger update after copy/move
* trigger refresh after returnign from shell
* add renew after returning from shell
* move file update
2024-03-24 20:12:47 +01:00
Michael Gallo
951795c789
Directories added to dirChan no longer trigger checkDir ( #1607 )
...
* Directories added to dirChan no longer trigger checkDir
removed unneeded blank line
* removed possibly looping checkReg call
2024-03-24 20:12:35 +01:00
Joe Lim
cf996263bb
Export mode for use in scripting keybindings ( #1594 )
...
* Export mode
* Add pipe mode
* Add documentation
2024-02-12 10:27:57 +11:00
Joe Lim
12ce649681
Improve refreshing of file statinfo ( #1536 )
2023-12-26 15:56:20 +01:00
Matthew Toohey
2a4adb323f
continue responding to signals after initial sigint ( #1549 )
2023-12-16 19:26:16 +11:00
Joe Lim
f52fffbff6
Force sync when writing to cut/copy buffer file ( #1480 )
2023-10-30 09:40:39 +11:00
Joe Lim
9068801831
Add query server command to expose internal state ( #1384 )
...
* 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
2023-09-08 18:52:19 +10:00
Joe Lim
63d21b5a3e
Allow lastdir/selection to be written to stdout ( #1399 )
...
* Allow lastdir/selection to be written to `stdout`
* Quick fix for runPagerOn
2023-08-28 11:30:16 +10:00
Joe Lim
443838e06f
Call load after shell-async commands ( #1345 )
2023-07-17 10:19:04 +10:00
Joe Lim
027538eabf
Avoid refreshing previews for shell pipe commands ( #1281 )
2023-06-04 19:04:29 +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
24bba6288d
Bound cursor position when selecting file ( #1247 )
2023-05-21 15:14:43 +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
Joe Lim
68e2433d48
Improve preview loading message flickering ( #1154 )
...
* Improve preview loading
* Change timeout to 100 milliseconds
* Add previewtimeout option
* Start preview outside other goroutines
* Revert previewtimeout option
2023-03-21 19:49:37 +03:00
Joe Lim
8652707299
Avoid refreshing previews for async shell commands ( #1164 )
2023-03-20 19:59:39 +03:00
Jackie Li
a85ce898a1
try to fix #916 ( #1146 )
2023-03-12 15:24:44 +03:00
Gokcehan
c1bcf71ece
export lf_width and lf_height as env variables
...
cc #718 #975
2022-11-13 23:00:13 +03:00
valoq
459608e096
load file info after init ( #994 )
...
* load fileinfo after init
* do not overwrite error message if present
2022-11-13 17:20:27 +03:00
Paul Ouellette
a94015d221
Add mouse support for selecting and opening files ( #963 )
...
* Add mouse support for selecting and opening files
Left click to select, right click to open, similar to ranger.
Closes #919 .
* Add default mouse wheel mappings
* Update tcell to d3cbfcf
Commit d3cbfcf fixes a bug where mouse wheel events were misdelivered as
button events.
2022-10-19 18:57:44 +03:00
Gokcehan
654b8737b8
update man generator for go1.19
...
cc #959 #961
2022-10-15 21:34:55 +03:00
Christian Zangl
e10ef9111b
add an on-select command ( #864 )
2022-10-15 21:06:09 +03:00
Paul Ouellette
cdbc9948f8
Completion code cleanup and improvements ( #958 )
...
- Clean up some code duplication.
- When completing files with menu completion while searching, don't
escape the selected match.
- Don't recompute completions while cycling completion menu.
2022-10-15 16:05:17 +03:00
Salle Helevä
479ed924f7
Implement directory previews ( #842 )
...
* Directory previews, initial implementation.
* Continue previous; add goroutine for directory previews.
* Enable dirpreviews as an option, run gofmt and fix referencing nil.
* Only use dirpreviews if previewer script exists.
* Remove redundant function call to `dirPreview`.
* Remove unnecessary dev-comments.
* Send to `dirPreviewChan` also on modifying folder contents.
2022-10-15 15:42:08 +03:00
segf00lt
da2d8a2979
added history options ( #866 )
...
* added history options
* sorry forgot to update docs
2022-07-10 15:32:34 +03:00
Gokcehan
089e6dc705
init navigation after evaluation of config file
...
cc #748 #759
2022-03-11 15:21:27 +03:00
Gokcehan
8954e9f16a
Revert "fix option processing, async dirs & start select ( #759 )"
...
This reverts commit fb66a21577 .
2022-03-11 02:43:38 +03:00
Gokcehan
25476e79ef
add 'on-quit' command to run a command before quit
...
cc #770
2022-02-27 14:09:08 +03:00
Christian Zangl
fb66a21577
fix option processing, async dirs & start select ( #759 )
2022-02-27 14:00:59 +03:00
Christian Zangl
c5bd676c3a
create process group for shell-pipe and shell-async ( #753 )
2022-02-13 23:39:49 +03:00
Gokcehan
47620fa680
add command line option for log file
...
cc #739
2022-02-06 19:51:52 +03:00
Gokcehan
18fb632efa
export files and options for previewer and cleaner
...
cc #626
2022-01-27 22:08:13 +03:00
Gokcehan
930364ce78
Revert "dirtyfiles: files that don't require cleaning before previewing them ( #729 )"
...
This reverts commit 673dad9f07 .
2022-01-22 16:57:28 +03:00
Lucas Mior
673dad9f07
dirtyfiles: files that don't require cleaning before previewing them ( #729 )
...
* dirtyfiles
* wrong default on man page
* respect alphabetic order for options
* clean on shell commands
* formating if
2021-12-25 20:49:30 +03:00