Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Nov 27, 2017. It is now read-only.

gongo/qiita-el

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 

Repository files navigation

qiita.el

Qiita API Library for emacs

Requirement

Usage

(require 'qiita)
 
;; option
;;   Used features that require authentication.
(setq qiita->token "xxxxxxxxxxx")

How

View

activities

CommandResultNote
M-x qiita:itemsActivities
C-u M-x qiita:itemsMy activitiesAuthentication Required
M-x qiita:user-items USERUSER activities
M-x qiita:my-stocksMy stock activitiesAuthentication Required
M-x qiita:user-stocks USERUSER stock activities

Tags

CommandResult
M-x qiita:tagsTags

Search

CommandResult
M-x qiita:search KEYWORDSearch results

Stock/Unstock

This features requires authentication.

On list view

  1. Exec View activities functions (eg. M-x qiita:items)
  2. Enter the <TAB> on the item you want to stock/unstock
  3. Select “Stock” or “Unstock” and Enter the <ENTER>

On item view

  1. Exec View activities functions (eg. M-x qiita:items)
  2. Enter the <TAB> on the item you want to stock/unstock
  3. Select “Open” and Enter the <ENTER>
  4. Item is opened, run M-x qiita:stock or M-x qiita:unstock

Post (Create)

Rule

  • Title
    # title
        

    or

    title
    =====
        
  • Tags
    <!-- tags hoge,fuga -->
        

    So, set tag “hoge” and “fuga”

Example

  1. Open new buffer markdown-mode
  2. Input item. example..
    qiita-el テスト投稿
    ====================
    
    みなさまお疲れ様です。
    
    <!-- tags Emacs,Ruby -->
    <!-- uuid ee796188dc4945769282 -->
    
    [gongo/qiita-el · GitHub](https://github.com/gongo/qiita-el)
    
    - List1
    - List2
    - List3
    
    1. hoge
        1. hoge1
    2. fuga
        1. fuga2
    3. hago
        1. hago1
        1. hago2
        1. hago3
    
    ```c
    #include <stdio.h>
    
    int main(void)
    {
        printf("Hello, World!!");
    }
    ```
    
    ```ruby
    p 'Hello, Wo\'rld!'
    ```
    
    > 1
    > 2
    > 3
        
  3. Run under functions
    CommandResult
    M-x qiita:postPost private item
    C-u M-x qiita:postPost public item
  4. Posted (example http://qiita.com/gongo/private/ee796188dc4945769282 )

Put (Update)

  1. Input <!-- uuid xxxxx -->
  2. run M-x qiita:post or C-u M-x qiita:post

So, Update uuid=xxxx item.

License

MIT License

About

Qiita API Library for emacs

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •