Claude Code がセッション開始時に「今何をやるべきか」を把握できるようにする。
検討した3つの候補からスキル化を採用し、obsidian-daily-tasks として実装済み。
| import logging | |
| import os | |
| from pathlib import Path | |
| import sys | |
| import openai | |
| import pygame | |
| from semantic_text_splitter import TextSplitter | |
| " Yank to system clipboard | |
| set clipboard=unnamed | |
| " keymap | |
| " Moving to the end and beginning of a line | |
| noremap <C-e> $ | |
| noremap <C-a> ^ | |
| " Notebook Link Related | |
| exmap followLinkUnderCursor obcommand editor:follow-link |
When using the Powerline font in iTerm2, the following problems occur:
These display issues can be addressed by applying the workarounds described below.
| # Pre requirement: install https://github.com/Omochice/deepl-translate-cli | |
| # Usage: source <(curl -sSL https://gist.githubusercontent.com/umiyosh/96ac77719c6de6c79c52529dcef24b1d/raw/9ad164120d66f5afdb1b4ece4d07740b29fb7caa/github-copilot-cli-wrapper.sh) | |
| # Example: https://twitter.com/umiyosh/status/1641625929360474113 | |
| function 'myhelp' () { | |
| if [ -z "$*" ] | |
| then | |
| echo "Usage: ?? '<任意の日本語>'" | |
| return 1 | |
| fi | |
| translated_cmd=$(echo "$*" | deepl-translate-cli -pro -s ja -t en) |
| if [[ -f $HOME/.gvm/scripts/gvm ]] ; then | |
| source $HOME/.gvm/scripts/gvm | |
| fi |
| scriptencoding utf-8 | |
| if has('vim_starting') | |
| set runtimepath+=~/.vim/plugged/vim-plug | |
| if !isdirectory(expand('~/.vim/plugged/vim-plug')) | |
| echo 'install vim-plug...' | |
| call feedkeys(' ') | |
| call system('mkdir -p ~/.vim/plugged/vim-plug') | |
| call system('git clone https://github.com/junegunn/vim-plug.git ~/.vim/plugged/vim-plug/autoload') | |
| end | |
| endif |