Skip to content

blue0513/scrapbox-on-emacs-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Scrapbox-on-Emacs-sample

A use case of scrapbox on Emacs

Usage

1. Set the Path to the shellscripts on sample.el

(defun my-index-scrapbox ()
	(interactive)
	(async-shell-command
		"/path/to/get_scrapbox_page_titles.sh"))

2. Fill blank on shellscripts

Edit your get_scrapbox_page.sh, get_scrapbox_page_titlets.sh as follows.

response=$(curl -s "[Your Request]")
# [Your Request]: "https://scrapbox.io/api/pages/[PROJECT_NAME]/search/titles"

3. Execute

  • Get Page Titles
M-x my-index-scrapbox
  • Get Page Body
M-x my-index-scrapbox RET [YOUR_PAGE_NAME]
  • Post Page Body

After selecting region, execute

M-x my-post-scrapbox RET [YOUR_PAGE_NAME]

Hack for private page

If you want to access your private project, plz do a bit hack.

See the comment on: get_scrapbox_page.sh

About

A simple use case of scrapbox on Emacs

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published