# GtkBookmarks

Parses $HOME/.gtk-bookmarks

Author: Raphael Pinson raphael.nosp@m..pinson@camptoc.nosp@m.amp.com

Summary

GtkBookmarks | Parses $HOME/.gtk-bookmarks
License | This file is licenced under the LGPL v2+, like the rest of Augeas.
Lens Usage | To be documented
Configuration files | This lens applies to $HOME/.gtk-bookmarks.
Examples | The Test_GtkBookmarks file contains various examples and tests.
Augeas Lenses |
empty | Comment are not allowed, even empty comments
entry |
lns |
xfm |

### License

This file is licenced under the LGPL v2+, like the rest of Augeas.

### Lens Usage

To be documented

### Configuration files

This lens applies to $HOME/.gtk-bookmarks. See filter.

### Examples

The Test_GtkBookmarks file contains various examples and tests.

### Augeas Lenses

### empty

> let empty = Util.empty_generic Rx.opt_space

Comment are not allowed, even empty comments

### entry

> let entry = [ label "bookmark" . store Rx.no_spaces . (Sep.space . [ label "label" . store Rx.space_in ])? . Util.eol ]

### lns

> let lns = (empty | entry)*

### xfm

> let xfm = transform lns (incl (Sys.getenv("HOME") . "/.gtk-bookmarks"))

Provides unit tests and examples for the GtkBookmarks lens.

> let empty = Util.empty_generic Rx.opt_space

Comment are not allowed, even empty comments

> let entry = [ label "bookmark" . store Rx.no_spaces . (Sep.space . [ label "label" . store Rx.space_in ])? . Util.eol ]

> let lns = (empty | entry)*

> let xfm = transform lns (incl (Sys.getenv("HOME") . "/.gtk-bookmarks"))

Close