License | GPL-2 |
---|---|
Maintainer | yi-devel@googlegroups.com |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
Extensions |
|
A simple dired implementation for Yi.
TODO
- add more comments
- Support symlinks
- Mark operations
- search
- Improve the colouring to show
- loaded buffers
- .hs files
- marked files
- Fix old mod dates (> 6months) to show year
- Fix the 'number of links' field to show actual values not just 1...
- Automatic support for browsing .zip, .gz files etc...
Documentation
diredDirBuffer :: FilePath -> YiM BufferRef Source
editFile :: FilePath -> YiM (Either Text BufferRef) Source
If file exists, read contents of file into a new buffer, otherwise creating a new empty buffer. Replace the current window with a new window onto the new buffer.
If the file is already open, just switch to the corresponding buffer.
Need to clean up semantics for when buffers exist, and how to attach windows to buffers.
Yi.File
module re-exports this, you probably want to import that
instead.
In case of a decoding failure, failure message is returned instead
of the BufferRef
.