/firefox-to-wikidpad

A tool to automatically import firefox bookmarks into wikidpad

Primary LanguageJava

Instructions

  • Install Java 8 and a git client.
  • Clone this repository.
  • Compile the sources. From the root directory run:
javac -cp src src/Main.java
java -cp "src;lib/*" Main
-in <path to places.sqlite inside firefox profile dir>
-out <path to newly created wiki root dir>
-compactBookmarks <true/false> 
-pageSizeThreshold <number>
  • compactBookmarks meaning:
    • true = bookmarks a la [name|link]
    • false = bookmarks a la name: link
  • pageSizeThreshold meaning: The maximal number of elements (links and directories) a page may contain. If a page has less than pageSizeThreshold elements, all its elements will be recursively included into this page. Set to 1 to have one page for each directory. Set to a large value, like 10000, to generate the whole wiki in one page.
  • Go back to Wikidpad. Notice the main page has changed.
  • Main menu -> Wiki -> Maintenance -> Rebuild wiki. Now the main menu should contain all the pages.
  • Optional: disable CamelCase wiki words. If you don't, Wikidpad will create a lot of phantom pages, for words like YouTube. In WikiSettings page add the line:
  [global.camelCaseWordsEnabled: false]

Run rebuild wiki again.

You are good to go. Feel free to experiment with different values of compactBookmarks and pageSizeThreshold, to find the value that best suits your need. My settings were false and 100. Be sure to re-create a fresh wiki each time you re-import the bookmarks.