* added first version of interactive filter
* small fix when loading new file
* don't reset filter when directory is reloaded automatically
* reapply filter when options for searching change
* current filter or arguments now prefilled in the prompt
* empty filter can now be supplied
* added new setfilter command for use in scripts
* added incfilter option
* added very basic documentation
* added filter indication in statusbar
* added option to display filter to prompt
* Fix replace dialog for symlinks
If the oldPath is a symlink to the newPath or vice versa, than os.Stat()
would resolve this symlink, and both the oldStat and newStat would be
the same. Hence, the replace dialog would not appear and the newPath
file would be overwritten by the oldPath file whilst the oldPath would
be deleted.
It is the same story when the oldPath and newPath are both symlinks to
the same file.
* Fix completion in the case of broken symlinks
If the current directory contains broken symlinks then matchFile() would
return at first broken symlink.
Let's consider the following example:
$ ls -F ~/
broken@ dir/ file
The broken@ is a symlink to ~/foo - non existent file.
If one would enter the following command in lf:
:cd ~/<tab>
it would not suggest possible completion options because matchFile()
would return as soon as it meet the broken symlink.
* Don't resolve symlinks when move files/dirs (#571)
This will allow to move broken symlinks.
* Fix symlinks copying/moving (#571)
Copy symlinks, do not try to resolve it and copy the file pointed by
this symlink. Also this allows to copy symlink to directory.
* 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
* always export lf_options before previewing
related functions were moved to `os.go`
and now exportOpts isn't called through
an app, so it can be called independently
* move related functions to main.go
so they get compiled on windows too
* Print message in status line after copying/moving
* Print message only when there's no errors
* Don't print number of copied files
* Fix error handling
* Send message to channel instead of direct ui.echo
* Fixed issue #346 and changed the format of numbers when both relativenumber and number are set.
* Fixed issue #349 (incorrect replacement of '~' with user's home direcotry).
* Changed where appropriate so that tilde replacements happens correctly.
* Added a function to replace tilde with user's home directory, only when it should.
* Renamed ReplaceTilde to replaceTilde so that it won't get exported and removed some ';' at the end of some lines.
* Asynchronous deletion, similar to moving
* Reversed some sloppy new lines from previous commit
* Move delete operations to delete.go
* Simplify to use RemoveAll before
* Send errors directly to ui.exprChan directly
- preserve natural ordering of filenames if extensions are the same
or are missing
- files without extensions rank higher on ascending sort and lower
on descending sort
- Add access time and change time as sort by types. This is
powered by github.com/djherbis/times.
- Fall back to modification time if access time and change time
cannot be determined.
- Add `sa` and `sc` as default bindings for sort by access time and
sort by change time respectively.
- Add access time and change time to info types allowing them to be
displayed by the file list in the ui
* basic structure
* working rename, without making dir's and selection change
* mkdirAll if necessary
* updated TODO's
* rename with replace prompting
* path prompt and moved functionality to nav.rename()
* renewing now (no set period is needed)
* documentation, keybidning change, load file info after renaming
* go generate