From: Cheng Zhao Date: Mon, 17 Nov 2014 11:02:37 +0000 (+0800) Subject: docs: Recent documents API X-Git-Tag: v0.19.3~1^2~7 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=bf66aeb8eed4bb2bccbf0c52f611c01e92aa86fe;p=electron.git docs: Recent documents API --- diff --git a/docs/api/app.md b/docs/api/app.md index 09916921..6d1ce4b0 100644 --- a/docs/api/app.md +++ b/docs/api/app.md @@ -123,6 +123,19 @@ preferred over `name` by atom-shell. Resolves the proxy information for `url`, the `callback` would be called with `callback(proxy)` when the request is done. +## app.addRecentDocument(path) + +* `path` String + +Adds `path` to recent documents list. + +This list is managed by the system, on Windows you can visit the list from task +bar, and on Mac you can visit it from dock menu. + +## app.clearRecentDocuments() + +Clears the recent documents list. + ## app.commandLine.appendSwitch(switch, [value]) Append a switch [with optional value] to Chromium's command line.