Crates.io | redict |
lib.rs | redict |
version | 0.2.3 |
source | src |
created_at | 2021-01-20 10:29:19.731306 |
updated_at | 2021-01-26 15:09:19.326126 |
description | A TUI and library to work with DICT servers. |
homepage | https://github.com/vigoux/redict |
repository | https://github.com/vigoux/redict |
max_upload_size | |
id | 344344 |
size | 75,259 |
A TUI and library to work with DICT servers.
To start redict
simply do :
redict {server}:{port}
To search, just type the word you want to find the definition of ! You also have two useful tools in the search bar :
@
and it will select a database:
and it will select a matching strategyThus :
word @database :strategy
Means search "word" in "database" wiht algorithm "strategy"
.
We can split redict
screen in 3 parts :
Search
bar (top bar)Status
bar (just below Search
bar)There are generic key bindings :
Key | Action |
---|---|
Esc |
Exit redict |
PageUp |
Scroll up in the tab page |
PageDown |
Scroll down in the tab page |
Tab |
Go to next mode |
BackTab |
Go to previous mode |
Up |
Go up in Search bar history |
Down |
Go down in Search bar history |
CTRL-u |
Empty search bar |
Enter |
Refreshes current mode, possibly using the currently searched term |
Left |
Move search bar cursor to the left |
Right |
Move search bar cursor to the right |
Home |
Move cursor to the start of the search bar |
End |
Move cursor to the end of the search bar |
Moreover, you can use your keyboard to edit the search bar direclty, that is anything typed will be added to the search bar.
Each mode does a different thing and allows you to view different informations about the server.
Shows the definition on the currently searched term.
You can you CTRL-h
and CTRL-l
to navigate definitions.
Definitions are listed in the Sources
bar, at the very bottom of the
screen.
Shows words matching the currently searched term.
This may be useful if your search show No definition
in Define
mode.
Shows the available matching strategies for this server.
Shows the available databases for this server.
I would like to:
Basically working binary and library
Have a better search bar
Define
and Match
mode using @db
Match
mode using :strategy
Enhanced Info
mode, that englobes Databases
and Strategies
, and other informations
Command
mode, to send raw commands
Multiple servers, but always in 0-config mode, that is only specified from the command line
This tool is (for now) partly RFC 2229 compliant :
DEFINE
MATCH
SHOW
DATABASES
STRATEGIES
INFO
SERVER
CLIENT
STATUS
QUIT
OPTION MIME
(and it will never be)AUTH
It also does not pipelines the requests, as this is not needed in interactive use.