Sha256: 2fdea664642ae0a6da5996e7a693cf99f1aed42f126bd4c97c4ad657d95fc4c5
Contents?: true
Size: 1.97 KB
Versions: 5
Compression:
Stored size: 1.97 KB
Contents
# Ememo Easy Memo ## Requirement - Ruby 3.0.0+ #### Optional - <a href="http://github.com/junegunn/fzf" target="_blank"> fzf </a> ( or other fuzzy finder ) ## Demo ![memo](https://user-images.githubusercontent.com/32477095/104561601-fb81de80-568a-11eb-9e4b-a823a6311be7.gif) ## Installation ```bash $ gem install ememo ``` ## Config ```bash # Create config file to ENV["MEMO_CONFIG"] or "~/.memo/config" # You can skip this step $ memo setup # edit config file # with ENV["EDITOR"] or vim $ memo c $ memo config ``` ## Usage ### Edit ```toml [config] # default is ENV["EDITOR"] or vim editor = "emacs" [namespace_alias] p = "project1" ``` ```bash # edit ~/.memo/mymemo/memo.md with editor $ memo e $ memo edit # edit ~/.memo/mymemo/todo.md with editor $ memo edit todo # edit ~/.memo/project1/todo.md with editor $ memo edit todo -n project1 # with namespace_alias $ memo edit todo -n p ``` ### Preview ```bash # preview ~/.memo/mymemo/memo.md $ memo p $ memo preview # preview ~/.memo/mymemo/todo.md $ memo p todo # preview ~/.memo/project1/todo.md $ memo p todo -n project1 # with namespace_alias $ memo p todo -n p ``` ### Today ```bash # edit today's memo (~/.memo/2021/1/1.md) $ memo t $ memo today # preview today's memo (~/.memo/2021/1/1.md) $ memo p t ``` ### FuzzyFind ```toml [config] # default is fzf fuzzy_finder = "peco" ``` ```bash # fuzzy find memo $ memo fuzzy $ memo f ``` ### Custom Command You can register command_alias ```toml [command_alias] etw = "e todo -n w" ptw = "p todo -n w" ``` ```bash $ memo etw # => `memo edit todo -n work` $ memo ptw # => `memo preview todo -n work` ``` ## Sample Config ```toml [config] ext = "md" root = "~/.memo" editor = "vim" preview = "bat" fuzzy_finder = "fzf --preview 'bat --color=always {}'" default_filename = "memo" default_namespace = "general" [namespace_alias] w = "work" p = "private" [command_alias] etw = "e todo -n w" ptw = "p todo -n w" ``` ## Author [@YumaFuu](https://github.com/YumaFuu) ## Licence mit
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
ememo-0.1.6 | README.md |
ememo-0.1.5 | README.md |
ememo-0.1.4 | README.md |
ememo-0.1.3 | README.md |
ememo-0.1.2 | README.md |