* 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
* 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
* 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.
- 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.
* 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.
* fixed bug when switching commands
* filter and searches are now reset, whenever prompt is reset
* don't interrupt %-shell commands
* filter and search are now correctly started and stoped on cd
* movement commands now don't stop prompts
* forgot shell-pipe check in delete command
* Use chan struct{} in place of chan bool
* Revert "nav.checkReg now returns a boolean instead of calling nav.preview"
* Guarantee preview/previewClear ordering
* Pass the file path to the cleaner script
* Return early on error in nav.preview
* nav.checkReg now returns a boolean instead of calling nav.preview
* Pass width, height, x, and y parameters to preview script
* Check previewer for exit code
If non-zero the preview will be assumed to have side-effects.
* Add the cleaner option
This is called upon selection changes if the previous preview was
volatile. To this end, volatilePreview was added to the nav struct