* 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.
* Add possibility to execute commands when cwd changes (on_chdir)
* Renamed function and special command on_chdir (onChdir, on-cd), support select command
Currently, renaming a file without changing the name will prompt for
replacing and then delete the file. This will instead cancel the
renaming if the old and new names are the same.
* 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
The path has to start with the home directory to be shortened to `~`.
Previously a user named `user` would see `/media/backup~/files` when
browsing `/media/backup/home/user/files`.
- 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
This will make the prompt shown when running the delete command more descriptive.
Before: `delete?[y/N]:`
Now when deleting one file: `delete /tmp/abc [y/N]?`
Now when deleting selection: `delete 3 items [y/N]?`