Module quickmarks

Vimperator-style quickmarking

Inspired by vimperator's quickmarks feature, this module allows you to associate up to sixty-two websites with a set of easy-to-type keybindings. Users can then type a three-keystroke command to open any of these websites in the current tab, a new tab, or a new window.

Functions

quickmarks.load (fd_name)

Load quick bookmarks from storage file into memory.

Parameters

  • fd_name
    Type: string
    Bookmarks storage file path or nil to use default one.

quickmarks.save (fd_name)

Save quick bookmarks to file.

Parameters

  • fd_name
    Type: string
    Bookmarks storage file path or nil to use default one.

quickmarks.get (token, load_file)

Return URI related to given key or nil if does not exist.

Parameters

  • token
    Type: string
    Quick bookmarks mapping token.
  • load_file
    Type: boolean
    Call quickmark.load() before retrieving the URI.

quickmarks.get_tokens ()

Return a list of all the tokens in the quickmarks table.

quickmarks.set (token, uris, load_file, save_file)

Set new quick bookmarks mapping.

Parameters

  • token
    Type: string
    The token under which given uris will be available.
  • uris
    Type: string or {string}
    List of locations to quickmark.
  • load_file
    Type: boolean
    Call quickmark.load() before adding the mapping.
  • save_file
    Type: boolean
    Call quickmark.save() after adding the mapping.

quickmarks.del (token, load_file, save_file)

Delete a quickmark.

Parameters

  • token
    Type: string
    The quickmark token.
  • load_file
    Type: boolean
    Call quickmark.load() before deletion.
  • save_file
    Type: boolean
    Call quickmark.save() after deletion.

quickmarks.delall (save_file)

Delete all quickmarks.

Parameters

  • save_file
    Type: boolean
    Call quickmark.save() function.

Attribution

Authors

  • Piotr Husiatyński
  • Mason Larobina

Copyright