Safe Haskell | None |
---|
- editFile :: FilePath -> YiM BufferRef
- viWrite :: YiM ()
- viWriteTo :: String -> YiM ()
- viSafeWriteTo :: String -> YiM ()
- fwriteE :: YiM ()
- fwriteBufferE :: BufferRef -> YiM ()
- fwriteAllE :: YiM ()
- fwriteToE :: String -> YiM ()
- backupE :: FilePath -> YiM ()
- revertE :: YiM ()
- setFileName :: BufferRef -> FilePath -> YiM ()
File-based actions
editFile :: FilePath -> YiM BufferRefSource
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.
Try to write a file in the manner of vi/vim Need to catch any exception to avoid losing bindings
viSafeWriteTo :: String -> YiM ()Source
Try to write to a named file if it doesn't exist. Error out if it does.
fwriteBufferE :: BufferRef -> YiM ()Source
Write a given buffer to disk if it is associated with a file.
fwriteAllE :: YiM ()Source
Write all open buffers
Helper functions
setFileName :: BufferRef -> FilePath -> YiM ()Source
Associate buffer with file; canonicalize the given path name.