Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add quite mode, use unix like params style #9

Merged
merged 1 commit into from
Mar 2, 2019

Conversation

xieyunzi
Copy link
Contributor

@xieyunzi xieyunzi commented Mar 2, 2019

  • 我已确保代码能本地编译通过,并无编译错误.
  • 我已确认运行现有测试用例,并且所有测试用例均能通过.
  • 我已确认遵循Go语言代码编写规范,保证代码可读且可维护.

增加了 quiet 模式,不显示 spinner,更模式适合与其他程序集成
修改了参数风格,更符合 unix 风格,这种风格使脚本化更简单,因为单词参数是追加而不是插入

我的使用场景是在 tmux 中查询选中的单词

tmux bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "xargs -I {} tmux run-shell -b 'ydict -q {}'"

https://github.com/xieyunzi/dotfiles/blob/84036b19af28c6fd1f37e7072a64b5cee040321a/tmux/.tmux.conf#L88

@TimothyYe TimothyYe merged commit 1bc9096 into TimothyYe:master Mar 2, 2019
@TimothyYe
Copy link
Owner

感谢你的PR,已合并

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants