Skip to content

Commit

Permalink
Merge pull request #35 from fpringle/small-cleanup
Browse files Browse the repository at this point in the history
Small cleanup
  • Loading branch information
fpringle authored Jan 21, 2023
2 parents e6ab414 + 156e5e3 commit 33f0a73
Show file tree
Hide file tree
Showing 14 changed files with 91 additions and 49 deletions.
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ and this project adheres to the

### Removed

## [0.2.3.1] - 2023-01-21

### Changed

- Update the year in `versionString`
- Update README.md

## [0.2.3.0] - 2023-01-21

### Added
Expand Down Expand Up @@ -127,7 +134,8 @@ build docs using a pre-commit hook.

- Initial release.

[unreleased]: https://github.com/fpringle/hoyo/compare/v0.2.3.0...HEAD
[unreleased]: https://github.com/fpringle/hoyo/compare/v0.2.3.1...HEAD
[0.2.3.1]: https://github.com/fpringle/hoyo/compare/v0.2.3.0...v0.2.3.1
[0.2.3.0]: https://github.com/fpringle/hoyo/compare/v0.2.2.1...v0.2.3.0
[0.2.2.1]: https://github.com/fpringle/hoyo/compare/v0.2.2.0...v0.2.2.1
[0.2.2.0]: https://github.com/fpringle/hoyo/compare/v0.2.1.0...v0.2.2.0
Expand Down
47 changes: 29 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ You can download binary directly [from GitHub releases](https://github.com/fprin

After downloading binary, make it executable and copy it under convenient location, for example:

```shell
```
chmod +x hoyo-cli
mv hoyo-cli ~/.local/bin/hoyo-cli
```
Expand All @@ -23,22 +23,24 @@ Download [this bash script](scripts/hoyo.sh).

Add the following line to your `.bashrc`:

```bash
```
source path/to/hoyo.sh
```

# Usage

```man
hoyo [--version] COMMAND [-c|--config FILE] [-b|--bookmarks FILE]
[--fail] [--nofail] [--time] [--notime] [--enable-clear]
[--disable-clear] [--enable-reset] [--disable-reset]
```
Set directory bookmarks for quick "cd"-like behaviour
Set directory bookmarks for quick "cd"-like behaviour
Usage: hoyo [COMMAND] [-c|--config <file>] [-b|--bookmarks <file>] [--fail]
[--nofail] [--time] [--notime] [--enable-clear] [--disable-clear]
[--enable-reset] [--disable-reset]
For more help on a particular sub-command, run `hoyo <cmd> --help`.
Available options:
-c,--config FILE Override the default config file
-b,--bookmarks FILE Override the default bookmarks file
-c,--config <file> Override the default config file
-b,--bookmarks <file> Override the default bookmarks file
--fail Fail on error
--nofail Disable fail on error
--time Display bookmark creation times
Expand All @@ -57,21 +59,22 @@ Available commands:
delete Delete a bookmark
refresh Re-calculate bookmark indices
config View/manage hoyo config
check Verify validity of config and bookmarks
```

## Examples

### List the current bookmarks

```bash
```
$ hoyo list
1. /home/Documents doc
2. /home/Music/Albums
```

### `cd` to a bookmark

```bash
```
$ hoyo move doc
$ pwd
/home/Documents
Expand All @@ -82,7 +85,7 @@ $ pwd

### Add a new bookmark

```bash
```
$ hoyo add /home h
$ hoyo list
1. /home/Documents doc
Expand All @@ -95,7 +98,7 @@ $ pwd

### Delete a bookmark

```bash
```
$ hoyo delete 2
$ hoyo list
1. /home/Documents doc
Expand All @@ -104,7 +107,7 @@ $ hoyo list

### Reset bookmark indices

```bash
```
$ hoyo refresh
$ hoyo list
1. /home/Documents doc
Expand All @@ -113,7 +116,7 @@ $ hoyo list

### View config

```bash
```
$ hoyo config print
fail_on_error = false
enable_clearing = true
Expand All @@ -124,7 +127,7 @@ enable_reset = true

### Modify config

```bash
```
$ hoyo config set display_creation_time true
$ hoyo list
1. 12/26/22 16:55:13 /home/Documents doc
Expand All @@ -133,7 +136,7 @@ $ hoyo list

### Reset config

```bash
```
$ hoyo config reset
$ hoyo config print
fail_on_error = false
Expand All @@ -145,8 +148,16 @@ enable_reset = false

### Clear all bookmarks

```bash
```
$ hoyo clear --enable-clear
$ hoyo list
[ no output ]
```

### Validate your config file

```
$ hoyo check
Config is good
Bookmarks file is good
```
10 changes: 9 additions & 1 deletion docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ and this project adheres to the

### Removed

## [0.2.3.1] - 2023-01-21

### Changed

- Update the year in `versionString`
- Update README.md

## [0.2.3.0] - 2023-01-21

### Added
Expand Down Expand Up @@ -127,7 +134,8 @@ build docs using a pre-commit hook.

- Initial release.

[unreleased]: https://github.com/fpringle/hoyo/compare/v0.2.3.0...HEAD
[unreleased]: https://github.com/fpringle/hoyo/compare/v0.2.3.1...HEAD
[0.2.3.1]: https://github.com/fpringle/hoyo/compare/v0.2.3.0...v0.2.3.1
[0.2.3.0]: https://github.com/fpringle/hoyo/compare/v0.2.2.1...v0.2.3.0
[0.2.2.1]: https://github.com/fpringle/hoyo/compare/v0.2.2.0...v0.2.2.1
[0.2.2.0]: https://github.com/fpringle/hoyo/compare/v0.2.1.0...v0.2.2.0
Expand Down
2 changes: 1 addition & 1 deletion docs/HoYo-Bookmark.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><meta name="viewport" content="width=device-width, initial-scale=1" /><title>HoYo.Bookmark</title><link href="linuwial.css" rel="stylesheet" type="text/css" title="Linuwial" /><link rel="stylesheet" type="text/css" href="quick-jump.css" /><link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=PT+Sans:400,400i,700" /><script src="haddock-bundle.min.js" async="async" type="text/javascript"></script><script type="text/x-mathjax-config">MathJax.Hub.Config({ tex2jax: { processClass: "mathjax", ignoreClass: ".*" } });</script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script></head><body><div id="package-header"><span class="caption">hoyo-0.2.3.0: Bookmark directories for cd</span><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul></div><div id="content"><div id="module-header"><table class="info"><tr><th valign="top">Copyright</th><td>(c) Frederick Pringle 2023</td></tr><tr><th>License</th><td>BSD-3</td></tr><tr><th>Maintainer</th><td>[email protected]</td></tr><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell2010</td></tr></table><p class="caption">HoYo.Bookmark</p></div><div id="table-of-contents"><div id="contents-list"><p class="caption" onclick="window.scrollTo(0,0)">Contents</p><ul><li><a href="#g:1">The Bookmark type</a></li><li><a href="#g:2">Working with bookmarks</a><ul><li><a href="#g:3">Parsing/encoding bookmarks from/to TOML</a></li></ul></li></ul></div></div><div id="description"><p class="caption">Description</p><div class="doc"><p>The <code><a href="HoYo-Bookmark.html#t:Bookmark" title="HoYo.Bookmark">Bookmark</a></code> type provides a representation of bookmarks saved and used
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><meta name="viewport" content="width=device-width, initial-scale=1" /><title>HoYo.Bookmark</title><link href="linuwial.css" rel="stylesheet" type="text/css" title="Linuwial" /><link rel="stylesheet" type="text/css" href="quick-jump.css" /><link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=PT+Sans:400,400i,700" /><script src="haddock-bundle.min.js" async="async" type="text/javascript"></script><script type="text/x-mathjax-config">MathJax.Hub.Config({ tex2jax: { processClass: "mathjax", ignoreClass: ".*" } });</script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script></head><body><div id="package-header"><span class="caption">hoyo-0.2.3.1: Bookmark directories for cd</span><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul></div><div id="content"><div id="module-header"><table class="info"><tr><th valign="top">Copyright</th><td>(c) Frederick Pringle 2023</td></tr><tr><th>License</th><td>BSD-3</td></tr><tr><th>Maintainer</th><td>[email protected]</td></tr><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell2010</td></tr></table><p class="caption">HoYo.Bookmark</p></div><div id="table-of-contents"><div id="contents-list"><p class="caption" onclick="window.scrollTo(0,0)">Contents</p><ul><li><a href="#g:1">The Bookmark type</a></li><li><a href="#g:2">Working with bookmarks</a><ul><li><a href="#g:3">Parsing/encoding bookmarks from/to TOML</a></li></ul></li></ul></div></div><div id="description"><p class="caption">Description</p><div class="doc"><p>The <code><a href="HoYo-Bookmark.html#t:Bookmark" title="HoYo.Bookmark">Bookmark</a></code> type provides a representation of bookmarks saved and used
by the hoyo program. This module exports some utility datatypes and functions
used for working with bookmarks.</p></div></div><div id="synopsis"><details id="syn"><summary>Synopsis</summary><ul class="details-toggle" data-details-id="syn"><li class="src short"><span class="keyword">data</span> <a href="#t:Bookmark">Bookmark</a> = <a href="#v:Bookmark">Bookmark</a> {<ul class="subs"><li><a href="#v:_bookmarkDirectory">_bookmarkDirectory</a> :: !<a href="HoYo.html#t:TFilePath" title="HoYo">TFilePath</a></li><li><a href="#v:_bookmarkIndex">_bookmarkIndex</a> :: !<a href="file:///home/freddy/.ghcup/ghc/8.10.7/share/doc/ghc-8.10.7/html/libraries/base-4.14.3.0/Data-Int.html#t:Int" title="Data.Int">Int</a></li><li><a href="#v:_bookmarkCreationTime">_bookmarkCreationTime</a> :: !<a href="file:///home/freddy/.cabal/store/ghc-8.10.7/time-1.12.2-e2043c0bbb0625a5f9be54ef422f120db1be74974db096e3031ad7b4a12b2407/share/doc/html/Data-Time-LocalTime.html#t:ZonedTime" title="Data.Time.LocalTime">ZonedTime</a></li><li><a href="#v:_bookmarkName">_bookmarkName</a> :: !(<a href="file:///home/freddy/.ghcup/ghc/8.10.7/share/doc/ghc-8.10.7/html/libraries/base-4.14.3.0/Data-Maybe.html#t:Maybe" title="Data.Maybe">Maybe</a> <a href="file:///home/freddy/.cabal/store/ghc-8.10.7/text-2.0.1-1c73111e195963a014cd7c91a64e15df44e0812b0ca9c8f628f075b48b01fae1/share/doc/html/Data-Text.html#t:Text" title="Data.Text">Text</a>)</li></ul>}</li><li class="src short"><span class="keyword">newtype</span> <a href="#t:Bookmarks">Bookmarks</a> = <a href="#v:Bookmarks">Bookmarks</a> {<ul class="subs"><li><a href="#v:unBookmarks">unBookmarks</a> :: [<a href="HoYo-Bookmark.html#t:Bookmark" title="HoYo.Bookmark">Bookmark</a>]</li></ul>}</li><li class="src short"><span class="keyword">data</span> <a href="#t:BookmarkSearchTerm">BookmarkSearchTerm</a><ul class="subs"><li>= <a href="#v:SearchIndex">SearchIndex</a> <a href="file:///home/freddy/.ghcup/ghc/8.10.7/share/doc/ghc-8.10.7/html/libraries/base-4.14.3.0/Data-Int.html#t:Int" title="Data.Int">Int</a></li><li>| <a href="#v:SearchName">SearchName</a> <a href="file:///home/freddy/.cabal/store/ghc-8.10.7/text-2.0.1-1c73111e195963a014cd7c91a64e15df44e0812b0ca9c8f628f075b48b01fae1/share/doc/html/Data-Text.html#t:Text" title="Data.Text">Text</a></li></ul></li><li class="src short"><a href="#v:formatBookmark">formatBookmark</a> :: <a href="file:///home/freddy/.ghcup/ghc/8.10.7/share/doc/ghc-8.10.7/html/libraries/base-4.14.3.0/Data-Bool.html#t:Bool" title="Data.Bool">Bool</a> -&gt; <a href="file:///home/freddy/.ghcup/ghc/8.10.7/share/doc/ghc-8.10.7/html/libraries/base-4.14.3.0/Data-Int.html#t:Int" title="Data.Int">Int</a> -&gt; <a href="HoYo-Bookmark.html#t:Bookmark" title="HoYo.Bookmark">Bookmark</a> -&gt; <a href="file:///home/freddy/.cabal/store/ghc-8.10.7/text-2.0.1-1c73111e195963a014cd7c91a64e15df44e0812b0ca9c8f628f075b48b01fae1/share/doc/html/Data-Text.html#t:Text" title="Data.Text">Text</a></li><li class="src short"><a href="#v:formatBookmarks">formatBookmarks</a> :: <a href="file:///home/freddy/.ghcup/ghc/8.10.7/share/doc/ghc-8.10.7/html/libraries/base-4.14.3.0/Data-Bool.html#t:Bool" title="Data.Bool">Bool</a> -&gt; [<a href="HoYo-Bookmark.html#t:Bookmark" title="HoYo.Bookmark">Bookmark</a>] -&gt; [<a href="file:///home/freddy/.cabal/store/ghc-8.10.7/text-2.0.1-1c73111e195963a014cd7c91a64e15df44e0812b0ca9c8f628f075b48b01fae1/share/doc/html/Data-Text.html#t:Text" title="Data.Text">Text</a>]</li><li class="src short"><span class="keyword">data</span> <a href="#t:DefaultBookmark">DefaultBookmark</a> = <a href="#v:DefaultBookmark">DefaultBookmark</a> {<ul class="subs"><li><a href="#v:_defaultBookmarkDirectory">_defaultBookmarkDirectory</a> :: !<a href="HoYo.html#t:TFilePath" title="HoYo">TFilePath</a></li><li><a href="#v:_defaultBookmarkName">_defaultBookmarkName</a> :: !(<a href="file:///home/freddy/.ghcup/ghc/8.10.7/share/doc/ghc-8.10.7/html/libraries/base-4.14.3.0/Data-Maybe.html#t:Maybe" title="Data.Maybe">Maybe</a> <a href="file:///home/freddy/.cabal/store/ghc-8.10.7/text-2.0.1-1c73111e195963a014cd7c91a64e15df44e0812b0ca9c8f628f075b48b01fae1/share/doc/html/Data-Text.html#t:Text" title="Data.Text">Text</a>)</li></ul>}</li><li class="src short"><a href="#v:getBookmarks">getBookmarks</a> :: <a href="HoYo.html#t:HoYoMonad" title="HoYo">HoYoMonad</a> <a href="HoYo-Bookmark.html#t:Bookmarks" title="HoYo.Bookmark">Bookmarks</a></li><li class="src short"><a href="#v:searchBookmarks">searchBookmarks</a> :: <a href="HoYo-Bookmark.html#t:BookmarkSearchTerm" title="HoYo.Bookmark">BookmarkSearchTerm</a> -&gt; <a href="HoYo-Bookmark.html#t:Bookmarks" title="HoYo.Bookmark">Bookmarks</a> -&gt; ([<a href="HoYo-Bookmark.html#t:Bookmark" title="HoYo.Bookmark">Bookmark</a>], [<a href="HoYo-Bookmark.html#t:Bookmark" title="HoYo.Bookmark">Bookmark</a>])</li><li class="src short"><a href="#v:filterBookmarks">filterBookmarks</a> :: <a href="file:///home/freddy/.ghcup/ghc/8.10.7/share/doc/ghc-8.10.7/html/libraries/base-4.14.3.0/Data-Maybe.html#t:Maybe" title="Data.Maybe">Maybe</a> <a href="file:///home/freddy/.cabal/store/ghc-8.10.7/text-2.0.1-1c73111e195963a014cd7c91a64e15df44e0812b0ca9c8f628f075b48b01fae1/share/doc/html/Data-Text.html#t:Text" title="Data.Text">Text</a> -&gt; <a href="file:///home/freddy/.ghcup/ghc/8.10.7/share/doc/ghc-8.10.7/html/libraries/base-4.14.3.0/Data-Maybe.html#t:Maybe" title="Data.Maybe">Maybe</a> <a href="file:///home/freddy/.cabal/store/ghc-8.10.7/text-2.0.1-1c73111e195963a014cd7c91a64e15df44e0812b0ca9c8f628f075b48b01fae1/share/doc/html/Data-Text.html#t:Text" title="Data.Text">Text</a> -&gt; <a href="HoYo-Bookmark.html#t:Bookmark" title="HoYo.Bookmark">Bookmark</a> -&gt; <a href="file:///home/freddy/.ghcup/ghc/8.10.7/share/doc/ghc-8.10.7/html/libraries/base-4.14.3.0/Data-Bool.html#t:Bool" title="Data.Bool">Bool</a></li><li class="src short"><a href="#v:filterBookmarkByName">filterBookmarkByName</a> :: <a href="file:///home/freddy/.ghcup/ghc/8.10.7/share/doc/ghc-8.10.7/html/libraries/base-4.14.3.0/Data-Maybe.html#t:Maybe" title="Data.Maybe">Maybe</a> <a href="file:///home/freddy/.cabal/store/ghc-8.10.7/text-2.0.1-1c73111e195963a014cd7c91a64e15df44e0812b0ca9c8f628f075b48b01fae1/share/doc/html/Data-Text.html#t:Text" title="Data.Text">Text</a> -&gt; <a href="HoYo-Bookmark.html#t:Bookmark" title="HoYo.Bookmark">Bookmark</a> -&gt; <a href="file:///home/freddy/.ghcup/ghc/8.10.7/share/doc/ghc-8.10.7/html/libraries/base-4.14.3.0/Data-Bool.html#t:Bool" title="Data.Bool">Bool</a></li><li class="src short"><a href="#v:filterBookmarkByDirInfix">filterBookmarkByDirInfix</a> :: <a href="file:///home/freddy/.ghcup/ghc/8.10.7/share/doc/ghc-8.10.7/html/libraries/base-4.14.3.0/Data-Maybe.html#t:Maybe" title="Data.Maybe">Maybe</a> <a href="file:///home/freddy/.cabal/store/ghc-8.10.7/text-2.0.1-1c73111e195963a014cd7c91a64e15df44e0812b0ca9c8f628f075b48b01fae1/share/doc/html/Data-Text.html#t:Text" title="Data.Text">Text</a> -&gt; <a href="HoYo-Bookmark.html#t:Bookmark" title="HoYo.Bookmark">Bookmark</a> -&gt; <a href="file:///home/freddy/.ghcup/ghc/8.10.7/share/doc/ghc-8.10.7/html/libraries/base-4.14.3.0/Data-Bool.html#t:Bool" title="Data.Bool">Bool</a></li><li class="src short"><a href="#v:bookmarksFromDefault">bookmarksFromDefault</a> :: <a href="file:///home/freddy/.ghcup/ghc/8.10.7/share/doc/ghc-8.10.7/html/libraries/base-4.14.3.0/Control-Monad-IO-Class.html#t:MonadIO" title="Control.Monad.IO.Class">MonadIO</a> m =&gt; [<a href="HoYo-Bookmark.html#t:DefaultBookmark" title="HoYo.Bookmark">DefaultBookmark</a>] -&gt; m <a href="HoYo-Bookmark.html#t:Bookmarks" title="HoYo.Bookmark">Bookmarks</a></li><li class="src short"><a href="#v:bookmarkCodec">bookmarkCodec</a> :: <a href="file:///home/freddy/.cabal/store/ghc-8.10.7/tomland-1.3.3.2-22d8bfcd8b1478094c80899ffb935ba4e5ab8c64134eda1a16a19334182f2e27/share/doc/html/Toml-Codec-Types.html#t:TomlCodec" title="Toml.Codec.Types">TomlCodec</a> <a href="HoYo-Bookmark.html#t:Bookmark" title="HoYo.Bookmark">Bookmark</a></li><li class="src short"><a href="#v:bookmarksCodec">bookmarksCodec</a> :: <a href="file:///home/freddy/.cabal/store/ghc-8.10.7/tomland-1.3.3.2-22d8bfcd8b1478094c80899ffb935ba4e5ab8c64134eda1a16a19334182f2e27/share/doc/html/Toml-Codec-Types.html#t:TomlCodec" title="Toml.Codec.Types">TomlCodec</a> <a href="HoYo-Bookmark.html#t:Bookmarks" title="HoYo.Bookmark">Bookmarks</a></li><li class="src short"><a href="#v:defaultBookmarkCodec">defaultBookmarkCodec</a> :: <a href="file:///home/freddy/.cabal/store/ghc-8.10.7/tomland-1.3.3.2-22d8bfcd8b1478094c80899ffb935ba4e5ab8c64134eda1a16a19334182f2e27/share/doc/html/Toml-Codec-Types.html#t:TomlCodec" title="Toml.Codec.Types">TomlCodec</a> <a href="HoYo-Bookmark.html#t:DefaultBookmark" title="HoYo.Bookmark">DefaultBookmark</a></li><li class="src short"><a href="#v:decodeBookmarks">decodeBookmarks</a> :: <a href="file:///home/freddy/.cabal/store/ghc-8.10.7/text-2.0.1-1c73111e195963a014cd7c91a64e15df44e0812b0ca9c8f628f075b48b01fae1/share/doc/html/Data-Text.html#t:Text" title="Data.Text">Text</a> -&gt; <a href="file:///home/freddy/.ghcup/ghc/8.10.7/share/doc/ghc-8.10.7/html/libraries/base-4.14.3.0/Data-Either.html#t:Either" title="Data.Either">Either</a> <a href="file:///home/freddy/.cabal/store/ghc-8.10.7/text-2.0.1-1c73111e195963a014cd7c91a64e15df44e0812b0ca9c8f628f075b48b01fae1/share/doc/html/Data-Text.html#t:Text" title="Data.Text">Text</a> <a href="HoYo-Bookmark.html#t:Bookmarks" title="HoYo.Bookmark">Bookmarks</a></li><li class="src short"><a href="#v:decodeBookmarksFile">decodeBookmarksFile</a> :: <a href="file:///home/freddy/.ghcup/ghc/8.10.7/share/doc/ghc-8.10.7/html/libraries/base-4.14.3.0/Control-Monad-IO-Class.html#t:MonadIO" title="Control.Monad.IO.Class">MonadIO</a> m =&gt; <a href="HoYo.html#t:TFilePath" title="HoYo">TFilePath</a> -&gt; m (<a href="file:///home/freddy/.ghcup/ghc/8.10.7/share/doc/ghc-8.10.7/html/libraries/base-4.14.3.0/Data-Either.html#t:Either" title="Data.Either">Either</a> <a href="file:///home/freddy/.cabal/store/ghc-8.10.7/text-2.0.1-1c73111e195963a014cd7c91a64e15df44e0812b0ca9c8f628f075b48b01fae1/share/doc/html/Data-Text.html#t:Text" title="Data.Text">Text</a> <a href="HoYo-Bookmark.html#t:Bookmarks" title="HoYo.Bookmark">Bookmarks</a>)</li><li class="src short"><a href="#v:encodeBookmarks">encodeBookmarks</a> :: <a href="HoYo-Bookmark.html#t:Bookmarks" title="HoYo.Bookmark">Bookmarks</a> -&gt; <a href="file:///home/freddy/.cabal/store/ghc-8.10.7/text-2.0.1-1c73111e195963a014cd7c91a64e15df44e0812b0ca9c8f628f075b48b01fae1/share/doc/html/Data-Text.html#t:Text" title="Data.Text">Text</a></li><li class="src short"><a href="#v:encodeBookmarksFile">encodeBookmarksFile</a> :: <a href="file:///home/freddy/.ghcup/ghc/8.10.7/share/doc/ghc-8.10.7/html/libraries/base-4.14.3.0/Control-Monad-IO-Class.html#t:MonadIO" title="Control.Monad.IO.Class">MonadIO</a> m =&gt; <a href="HoYo.html#t:TFilePath" title="HoYo">TFilePath</a> -&gt; <a href="HoYo-Bookmark.html#t:Bookmarks" title="HoYo.Bookmark">Bookmarks</a> -&gt; m ()</li></ul></details></div><div id="interface"><a href="#g:1" id="g:1"><h1>The Bookmark type</h1></a><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:Bookmark" class="def">Bookmark</a> <a href="#t:Bookmark" class="selflink">#</a></p><div class="doc"><p>Bookmark a directory for easy <code>cd</code>. A bookmark remembers the directory,
the index, the creation time, and optionally a user-specified nickname
Expand Down
Loading

0 comments on commit 33f0a73

Please sign in to comment.