ein-notebook: Command to jump to an open notebook buffer.

Per issue #523, add a command that let's user select and switch to an open
notebook buffer.
This commit is contained in:
Miller 2019-05-24 14:15:36 -05:00
parent 92fddc899e
commit 321d0e6c15

View file

@ -359,6 +359,13 @@ will be updated with kernel's cwd."
(let ((if-not-found (lambda (contents status-code) )))
(ein:notebook-open url-or-port path kernelspec callback if-not-found no-pop)))
;;;###autoload
(defun ein:notebook-jump-to-opened-notebook (notebook)
"Switch to the buffer of an open notebook."
(interactive
(list (completing-read "Jump to notebook:" (ein:notebook-opened-buffer-names) nil t)))
(switch-to-buffer notebook))
;;;###autoload
(defun ein:notebook-open (url-or-port path &optional kernelspec callback errback no-pop)
"Returns notebook at URL-OR-PORT/PATH.