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_nameType: stringBookmarks storage file path or
nil
to use default one.
quickmarks.save (fd_name)
Save quick bookmarks to file.
Parameters
-
fd_nameType: stringBookmarks 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
-
tokenType: stringQuick bookmarks mapping token.
-
load_fileType: booleanCall
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
-
tokenType: stringThe token under which given uris will be available.
-
urisType: string or {string}List of locations to quickmark.
-
load_fileType: booleanCall
quickmark.load()
before adding the mapping. -
save_fileType: booleanCall
quickmark.save()
after adding the mapping.
quickmarks.del (token, load_file, save_file)
Delete a quickmark.
Parameters
-
tokenType: stringThe quickmark token.
-
load_fileType: booleanCall
quickmark.load()
before deletion. -
save_fileType: booleanCall
quickmark.save()
after deletion.
quickmarks.delall (save_file)
Delete all quickmarks.
Parameters
-
save_fileType: booleanCall quickmark.save() function.