Skip to main content

Data

Data view

With data view you can browse your data in text format and copy them to the clipboard. The "data" includes bookmarks, buffer nodes, tab nodes.

You can copy the information of currently selected tabs into the clipboard too. We have a shortcut for this. And it can also be found in the context menu of the extension icon.

Alt text

There are several common formats out of box. Custom template is also supported.

The template is a subset of angular template. It supports characters and expressions. An expression is a variable wrapped with double brackets.

variables

title, url, tags, notes, index date, origin, host

Wrap a field with double brackets.

eg:

# {{index}}
the title: {{title}}
the url: {{url}}


result:

# 1
the title: Data Viewer
the url: https://www.abookmark.org/docs/dv

# 2
the title: ....

pipes

maxLength {{ variable | maxLength : length }}

Note: Spaces before and after the separators can NOT be omitted.

eg:

{{ title | maxLength : 8 }}

until, untilReg {{ variable | until : some-string }}

eg:

{{ url | until : # }}
{{ title | untilReg : \\d }}

Data editor

This feature is inactive by default.

JSON

With JSON data editor you can edit the data of bookmarks directly in JSON formate. You can use your favorite text editor for further editing.

In the 'Edit' mode, a node is updated by its id if the corresponding bookmark can be found. Nodes without 'id' field are treated as new bookmarks. A node with '"-id"' or '_id' field instead of 'id' field will be removed.

All nodes are treated as new bookmarks if you are in the 'Create' mode.

Other formats

Similar to JSON data editor, you can modify the data slightly in data view modal ("urls", "plain") and save it back.

Please do not change the structure of the data, only modify individual words. This data is written back sequentially. If there is redundant data, new nodes will be created after the last node.

Put a '-' in the beginning of the url line to remove that node.

Import/Export

Abookmark is just bookmarks. You can use the native bookmark manager to import/export all the data. And it is also possible to import/export the data from abookmark directly.

When you importing from abookmark, the data will be loaded as temporary "file nodes". You can browser them as normal and pick what you want and drop them into a bookmark folder to save them permanently.

Import from session buddy

You may also transfer your data from Session Buddy. Just export your data from Session Buddy in json format, then load the json file from abookmark main menu. You can browse the loaded file nodes then select what you need and drag them into a real bookmark folder.

Snapshot

A snapshot is a copy of all the bookmarks, but you can also copy nodes you selected. It is another version of export. But they are stored in the browser natively and it keeps 12 snapshots.

You can load and view the snapshots as file nodes. Then You can copy some nodes by dragging and dropping them into a normal folder.