yi-core-0.17.1: Yi editor core library

LicenseGPL-2
Maintaineryi-devel@googlegroups.com
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010
Extensions
  • Cpp
  • TemplateHaskell
  • TemplateHaskellQuotes
  • OverloadedStrings
  • DeriveDataTypeable
  • DeriveGeneric
  • LambdaCase

Yi.Dired

Description

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...

Synopsis

Documentation

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.