{"id":16305320,"url":"https://github.com/moznion/hateblo.vim","last_synced_at":"2025-04-12T13:44:41.918Z","repository":{"id":62682623,"uuid":"12581701","full_name":"moznion/hateblo.vim","owner":"moznion","description":"This plugin provides some functions of Hatena-Blog by using AtomPub API.","archived":false,"fork":false,"pushed_at":"2015-06-19T03:07:05.000Z","size":506,"stargazers_count":50,"open_issues_count":8,"forks_count":6,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-02-16T02:19:59.057Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"VimL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/moznion.png","metadata":{"files":{"readme":"README.md","changelog":"Changes","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-09-04T04:15:10.000Z","updated_at":"2024-07-31T14:09:47.000Z","dependencies_parsed_at":"2022-11-04T10:57:19.486Z","dependency_job_id":null,"html_url":"https://github.com/moznion/hateblo.vim","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moznion%2Fhateblo.vim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moznion%2Fhateblo.vim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moznion%2Fhateblo.vim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moznion%2Fhateblo.vim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moznion","download_url":"https://codeload.github.com/moznion/hateblo.vim/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248574848,"owners_count":21127076,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-10T21:06:26.614Z","updated_at":"2025-04-12T13:44:41.894Z","avatar_url":"https://github.com/moznion.png","language":"VimL","funding_links":[],"categories":[],"sub_categories":[],"readme":"hateblo.vim\n===========\n\nはてなブログAtomPub APIを用いて，エントリの投稿等の機能を提供するVimプラグインです\n\nGetting started\n---------------\n\n1. `.hateblo.vim` というファイルをホームディレクトリに設置してください\n\n        $ touch ~/.hateblo.vim\n\n2. `.hateblo.vim` に以下のように設定を記述します (`.hateblo.vim` のサンプルは本リポジトリに含まれているので参考にして下さい)\n\n ```vim\n let g:hateblo_vim = {\n       \\ 'user':         'user_name',\n       \\ 'api_key':      'api_key',\n       \\ 'api_endpoint': 'http://.../atom',\n       \\ 'WYSIWYG_mode': 0 | 1,\n       \\ 'always_yes':   0 | 1,\n       \\ 'edit_command': 'edit' | 'tabnew' | 'split' | 'vsplit' | etc...\n \\ }\n ```\n\n 以下は各項目の解説です\n\n        user:         はてなのユーザID\n        api_key:      はてなブログの設定画面で確認できるAPIキー\n        api_endpoint: はてなブログの設定画面で確認できるルートエンドポイント\n        WYSIWYG_mode: 見たままモードを利用している場合は1に．それ以外は0に (オプショナル, デフォルト値:0)\n        always_yes:   確認プロンプトを出さずに常にyesにするときは1に (オプショナル，デフォルト値:0)\n        edit_command: 記事を編集する際のファイルの開き方を指定 (オプショナル，デフォルト値:edit)\n\n3. 本モジュールの依存モジュールをインストールして下さい. もしもNeoBundleを利用しているなら, `.vimrc`に以下の記述を追加するとよいでしょう．\n\n        NeoBundle 'mattn/webapi-vim'\n        NeoBundle 'Shougo/unite.vim'\n\n4. このモジュールをインストールしてください．もしもNeoBundleを利用しているなら，`.vimrc`に以下の記述を追加するとよいでしょう．\n\n        NeoBundle 'moznion/hateblo.vim'\n\n あるいは手順3と手順4を組み合わせて以下のように書いてもよいでしょう．\n\n        NeoBundle 'moznion/hateblo.vim', {\n                \\ 'depends': ['mattn/webapi-vim', 'Shougo/unite.vim']\n        \\ }\n\nProvided commands\n-----------------\n\n- :HatebloCreate\n\n新しいブログエントリを投稿します．\n1行目に`TITLE:`から始まる文を記述すると，その行はタイトルとして扱われます．\nもしも1行目でタイトルを指定しなかった場合は，インタラクティブにタイトルが要求されます．\n\nまた，タイトル入力後にカテゴリを入力を要求されます (もちろん入力しなくても大丈夫です．その場合はカテゴリは空として扱われます)．\nカテゴリは半角カンマ (,) で区切ることにより複数個指定することが出来ます．\n2行目に`CATEGORY:`から始まるを記述するとその行はカテゴリとして扱われます．\n半角カンマで区切れる点も同様です．\n\n- :HatebloCreateDraft\n\n新しいブログエントリを **「下書き」として** 投稿します．  \nそれ以外の機能は `:HatebloCreate` と同等の機能を提供しています．\n本機能を利用する場合は [22261e094ad01faa433fe2c7219c6be14ce127cd](https://github.com/mattn/webapi-vim/commit/22261e094ad01faa433fe2c7219c6be14ce127cd) 以降の (つまり新しい) [webapi-vim](https://github.com/mattn/webapi-vim)がインストールされている必要があります。\n\n- :HatebloList\n\nブログエントリのリストを unite source 形式で表示します．\nエントリを選択すると，そのエントリを編集することができます．\n\n- :edit hateblo:\n\nブログエントリのリストを[metarw](https://github.com/kana/vim-metarw)形式で表示します．(optional)\n使用するには[vim-metarw](https://github.com/kana/vim-metarw)が必要になります．\nエントリを選択すると，そのエントリを編集することができます．\n`:HatebloList`の場合と異なり,現在のディレクトリに記事のタイトルのファイルが生成されません．\n`edit`は`split`等のファイルを開くコマンドや`:e`等の省略形が使用できます．\n\n- :HatebloUpdate [new_entry_title]\n\n現在のバッファのエントリを更新します．\n引数の`new_entry_title`はオプショナルです．もしもタイトルを変更したい場合は指定してください．\n引数が指定されなかった場合，タイトルは変更されません．\n`TITLE:`, `CATEGORY:`により指定はここでも有効です．\n上述の方法で開いたバッファでしか実行できません．\n\n- :HatebloDelete\n\n現在のバッファのエントリを削除します．\n上述の方法で開いたバッファでしか実行できません．\n\nDependencies\n------------\n\n- [webapi-vim](https://github.com/mattn/webapi-vim)\n- [unite.vim](https://github.com/Shougo/unite.vim)\n- [metarw](https://github.com/kana/vim-metarw) (optional)\n\nLicense\n-------\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoznion%2Fhateblo.vim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoznion%2Fhateblo.vim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoznion%2Fhateblo.vim/lists"}