All Projects → liipx → gdict

liipx / gdict

Licence: GPL-3.0 License
A command line dictionary written in golang powered by multi engines.

Programming Languages

go
31211 projects - #10 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to gdict

kictor
A dictionary based on the console, 一个基于控制台的词典工具
Stars: ✭ 15 (-28.57%)
Mutual labels:  dictionary, youdao, iciba
Eazydict
简单易用的命令行词典 📕 📙 📗 📘 📓
Stars: ✭ 92 (+338.1%)
Mutual labels:  bing, dictionary, youdao
terminal-translate
a terminal-translate tool
Stars: ✭ 73 (+247.62%)
Mutual labels:  youdao, iciba
alfred-google-search
Alfred workflow to do inline google searches (open URL or copy to clipboard)
Stars: ✭ 32 (+52.38%)
Mutual labels:  alfred, alfred3-workflow
alfred-last2imgur
Alfred workflow to upload the last screenshot taken to Imgur + (delete and minify image)
Stars: ✭ 15 (-28.57%)
Mutual labels:  alfred, alfred3-workflow
Alfred Bear
Streamlined note searching and creation for Bear using Alfred
Stars: ✭ 203 (+866.67%)
Mutual labels:  alfred, alfred3-workflow
Menu Bar Search
Quickly search through menu options of the front-most application - Alfred Workflow
Stars: ✭ 218 (+938.1%)
Mutual labels:  alfred, alfred3-workflow
wipfred
🚧Manage your wip.chat todos with alfred
Stars: ✭ 23 (+9.52%)
Mutual labels:  alfred, alfred3-workflow
alfred-string-operations
Perform string operations to clipboard content
Stars: ✭ 70 (+233.33%)
Mutual labels:  alfred, alfred3-workflow
alfred
A fast, simple way to make Alfred workflow script filters in Go
Stars: ✭ 25 (+19.05%)
Mutual labels:  alfred, alfred3-workflow
web-translate
支持pdf和web的双击划词翻译脚本,当前使用爱词霸公共api
Stars: ✭ 43 (+104.76%)
Mutual labels:  youdao, iciba
Alfredmagic
一个面向效率提升的中文Workflow
Stars: ✭ 178 (+747.62%)
Mutual labels:  alfred, alfred3-workflow
Alfy
Create Alfred workflows with ease
Stars: ✭ 2,232 (+10528.57%)
Mutual labels:  alfred, alfred3-workflow
Alfred Pinboard Rs
Alfred Workflow for Pinboard (Rust)
Stars: ✭ 223 (+961.9%)
Mutual labels:  alfred, alfred3-workflow
Alfred Dark Mode
Alfred 3 workflow to toggle the system dark mode
Stars: ✭ 165 (+685.71%)
Mutual labels:  alfred, alfred3-workflow
Alfred Parrot
📝 一款可以多种语言翻译的 Alfred Workflow
Stars: ✭ 89 (+323.81%)
Mutual labels:  alfred, youdao
alfred-duden
Search the duden.de German dictionary from Alfred. With auto-suggest.
Stars: ✭ 32 (+52.38%)
Mutual labels:  alfred, dictionary
Alfred Pdf Tools
Optimize, encrypt and manipulate PDF files.
Stars: ✭ 69 (+228.57%)
Mutual labels:  alfred, alfred3-workflow
Alfred Cheat
Manage your self-defined cheat sheets & knowledge base in Alfred
Stars: ✭ 79 (+276.19%)
Mutual labels:  alfred, alfred3-workflow
bookends-tools
Alfred Workflow to Integrate with Bookends, an academic reference manager/bibliography tool for macOS
Stars: ✭ 78 (+271.43%)
Mutual labels:  alfred, alfred3-workflow

gdict

A command line dictionary written in golang powered by multi engines.

快速使用指南

安装

go get -u github.com/liipx/gdict

升级

cd $GOPATH/src/github.com/liipx/gdict && git pull && make install

使用

简单使用案例
  • 有道词典

  • 必应词典


  • 金山爱词霸

说明

$ gdict [options ...] word [options ...]

对参数做了处理,参数没有特定的位置限制【甚至于可以在句子中夹杂着参数..】

Options:

Options:
  Style: -dark, -light              // 配色方案
   Read: -s, --say  (MacOS only)    // 魅惑发音
 Engine: -e <engine name>           // 词典引擎,目前支持Youdao、bing(默认为有道youdao)
   Help: -h, --help                 // 查看帮助

TODO

  1. 离线缓存
  2. 词汇笔记本

其他说明

  1. 有道云、爱词霸API所使用Key皆来自github,侵删。
  2. MacOS支持鬼魅朗读,可以感受一下: gdict xxx -s ... 其实就是调用的say
  3. 支持Alfred workflow 格式的输出,可以按照下面的步骤定制自己的workflow
  4. 或者直接使用alfred目录下我导出的文件进行安装,安装后记得修改路径
# 1. 打开 workflow
# 2. 添加 script filter
# 3. 填写 `Keyword` 等基本信息
# 4. language选择/bin/bash,内容从下文`query=$1`到最后
# 5. 输出追加一个`copy to clipboard`即可

# 脚本内粘贴以下内容
    
query=$1
# 将下面的信息修改为 gdict binary 的存放路径
BINPATH="/like/your/gopath/bin"
     
# 参数一定要指定-w,输出特定格式的值
# 按照以下配置进行引擎切换
# $BINPATH/gdict -w -e bing $query
# $BINPATH/gdict -w -e iciba $query
     
$BINPATH/gdict -w -e youdao $query`

效果图

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].