Branch: refs/heads/master
Home: https://github.com/yi-editor/yi
Commit: 8695beaa6f95a7486d98e6f83301cac466a28c4b
https://github.com/yi-editor/yi/commit/8695beaa6f95a7486d98e6f83301cac466a28c4b
Author: Michal J. Gajda <[email protected]>
Date: 2012-08-20 (Mon, 20 Aug 2012)
Changed paths:
M yi/src/library/Yi/Boot.hs
M yi/src/library/Yi/Config/Default.hs
M yi/src/library/Yi/Eval.hs
M yi/src/library/Yi/IReader.hs
A yi/src/library/Yi/Paths.hs
M yi/src/library/Yi/PersistentState.hs
M yi/yi.cabal
Log Message:
-----------
Factored out searching for app files to Yi.Paths.
Now Yi uses ~/.yi/ directory to store:
* 'yi.hs' config script
* 'articles.db' for Yi.IReader
* 'history' blob for Yi.PersistentState
* 'local/Env.hs' for GHCi command evaluator environment
This patch refactors searching for four above files to Yi.Paths,
so that they can be consistently updated.
I did it in preparation for prioritizing XDG-style directories
as implemented by xdg-basedir - if they exist, or there is no Yi config
present.
If the XDG-style directories ~/.config/yi and ~/.local/share/yi
do not exist, but ~/.yi exists, then future patch will fall back
to current behaviour.
NOTE: Indirectly Yi also uses ~/.cache/yi/ for storing binaries with
configuration compiled in. This is however handled by dyre library.
And already consistent with XDG directory standard by xdg-basedir
package.
Commit: 7c6868c221643d67337666786ba55e9d6ed4f253
https://github.com/yi-editor/yi/commit/7c6868c221643d67337666786ba55e9d6ed4f253
Author: Michal J. Gajda <[email protected]>
Date: 2012-08-20 (Mon, 20 Aug 2012)
Changed paths:
M yi/src/library/Yi/Paths.hs
M yi/yi.cabal
Log Message:
-----------
Option to move .yi to XDG-style (on Unices).
Migration tutorial from .yi to .config/yi and .local/share/yi:
[On Unix]
cd $HOME
mkdir -p .config/yi .local/share/yi
mv .yi/yi.hs .config/yi/
mv .yi/local .config/yi/
mv .yi/articles.db .config/yi/
mv .yi/history .local/share/yi/
Compatibility is preserved: If ~/.config/yi or ~/.local/share/yi do not
exist, we search for respective files in ~/.yi.
Note: added explicit dependency on xdg-basedir,
which was only indirect before (through Dyre.)
Commit: 8be85c4d650ef308de2bd1bced4fc171b00295f3
https://github.com/yi-editor/yi/commit/8be85c4d650ef308de2bd1bced4fc171b00295f3
Author: Michal J. Gajda <[email protected]>
Date: 2012-08-20 (Mon, 20 Aug 2012)
Changed paths:
M yi/yi.cabal
Log Message:
-----------
Merge https://github.com/yi-editor/yi into xdg
Commit: 890bcb75a2a4ff2ec365def94db6f2fefd4e4186
https://github.com/yi-editor/yi/commit/890bcb75a2a4ff2ec365def94db6f2fefd4e4186
Author: Michal J. Gajda <[email protected]>
Date: 2012-08-23 (Thu, 23 Aug 2012)
Changed paths:
M yi/src/library/Yi/Config/Default.hs
M yi/src/library/Yi/Paths.hs
Log Message:
-----------
FIXED: automatic creation of config/data dir.
It is nicer to create these directories in Yi.Paths
when no config/data dir exists, and it avoids a bug
with missing history file blocking exit from Yi
upon first execution.
Commit: bf5b4595f296e08e7313cbf1a7838181a2c044d4
https://github.com/yi-editor/yi/commit/bf5b4595f296e08e7313cbf1a7838181a2c044d4
Author: Dmitry Ivanov <[email protected]>
Date: 2012-08-25 (Sat, 25 Aug 2012)
Changed paths:
M yi/src/library/Yi/Boot.hs
M yi/src/library/Yi/Config/Default.hs
M yi/src/library/Yi/Eval.hs
M yi/src/library/Yi/IReader.hs
A yi/src/library/Yi/Paths.hs
M yi/src/library/Yi/PersistentState.hs
M yi/yi.cabal
Log Message:
-----------
Merge pull request #36 from mgajda/xdg
Move from .yi to XDG-style .config/yi and .local/share/yi directory paths
Compare: https://github.com/yi-editor/yi/compare/32c136a6115e...bf5b4595f296
--
Yi development mailing list
[email protected]
http://groups.google.com/group/yi-devel