Commit Graph

18 Commits (6615a235a7378c32d592b8cbd9a836c302745f31)

Author SHA1 Message Date
Takayuki Maeda 6615a235a7
Filter completion (#88)
* create completion component

* add move_up/down

* fix variable name

* pass config

* create debug component

* remov set

* add reserved words

* remove equal

* allow dead code

* always reset offset

* apply completion candidates correctly

* implement selected_candidate, word

* fix clippy warnings

* complete

* add tests for complete

* fix variable name

* fmt

* add tests for `filterd_candidates`

* add "IN" to reserved words

* remove "IN"

* add test cases

* add debug_assertions

* return complete directly

* add s

* make input field private

* update gobang.gif
3 years ago
Takayuki Maeda 1ffb2c36c0
Integrate table_value into table (#90)
* integrate table_value into table

* remove wrap

* remove wrap and alignment
3 years ago
Takayuki Maeda be9a1c87ec
Some minor modifications (#60)
* remove unused dependencies

* add table indexes to help

* fix description

* fix placeholder

* reset selection

* fix structopt description

* add usage section

* add the way to add connections

* remove a space
3 years ago
Takayuki Maeda 4a3d32cf9b fix clippy warnings 3 years ago
Takayuki Maeda 6bc3afef12 move table_status under table 3 years ago
Takayuki Maeda 2a0abf65cb
Add constraints tab (#41)
* get constraints

* replace / with .

* add constraint tab

* return TableRow

* remove comment column

* fix clippy warnings
3 years ago
Takayuki Maeda f3e2436a1e
Scrolling multiple lines in databases and connections (#37)
* scrolling multiple line in databases and connections

* multiple lines scrolling in databases
3 years ago
Takayuki Maeda 5da6b1b796
Support PostgreSQL (#35)
* move utils into database module

* draw help in connections view

* support postgres

* add table_schema field

* implement Pool for Postgres

* fix database tree for postgres

* add tests for selection_top, bottom

* fix clippy warnings

* remove unused function

* get schema

* fix clippy warnings

* show user defined types

* fix cell with when selecting far right cell

* split tests into tree functions

* convert TEXT[] to Vec<String>

* add prefix

* remove column pattern matching
3 years ago
Takayuki Maeda 07b2b5090f
Add key config (#33)
* implement key config

* use key config in help component

* use key config in databases component

* use key config in error component

* use key config in connections component

* set commands

* use database/table as a table component name

* fix a test for get_text

* use key config in tab component

* fix function name

* add focus_connections key

* use quit exit key
3 years ago
Takayuki Maeda 3c00d78326
Implement Help component (#32)
* implement help compoment

* fix database filter

* add column types

* fix clippy warnings

* help scrolling

* panic if type is not implemented yet

* not panic but return error

* add decimal

* add a test for get_text

* fix clippy warnings
3 years ago
Takayuki Maeda c768ffd461
Refactor Table component (#31)
* fix table component field names

* refactor function name

* add a test for is_number_column

* fix variable names

* make some fields private
3 years ago
Takayuki Maeda 7e8291be22
Select multiple cells (#30)
* select multiple cells

* define `expand_selected_area_x`, `expand_selected_area_y`

* make some table component fields private

* fix keymap

* fix a cell selection bug in page 2 and after

* add tests for `is_selected_cell` and `selected_cells`

* select cells while scrolling right

* calculate the number of cells considering cell spacing

* add tests for expand_selected_area

* add comments

* implement `reset`

* fix clippy warnings
3 years ago
Takayuki Maeda da06d0b557
Make table cells responsive (#23)
* make table cells responsive

* add workspace flag

* fix compile error

* scrolling responsive cells

* horizontal scrolling without numbers

* fix limit

* add row number

* implement TEXT type

* remove unused functions

* add keymap and update gobang.gif

* add a test for `calculate_widths`

* remove a debug line
3 years ago
Takayuki Maeda 98ca815c68
Filter records (#24)
* filter records

* refactor components event

* fix scrollbar style

* remove unneeded doc

* fix event order and table filter cursor

* fix and enhance databases filter
3 years ago
Takayuki Maeda 4472b63754
Implement table infinite scrolling (#22)
* implement infinite scrolling

* add windows as runs-on OS
3 years ago
Takayuki Maeda 0ebb39f3cd
Implement TableValue component (#17)
* use table value component

* add todo

* add linux target_os

* add default features for copypasta

* fix clippy warnings

* update gobang.gif
3 years ago
Takayuki Maeda 2f1edc8384
Select one specific Cell (#14)
* select a cell

* add tests for headers and rows

* fix redundant codes

* update README

* update gobang.gif
3 years ago
Takayuki Maeda f221e817a3
Refactor components (#12)
* add logger

* add shift key

* implement record table reset function

* fix style

* ignore gobang.log

* use table component

* remove doc

* pass focused as an argument

* remove unused enums

* create table component

* use databases component

* use query component

* remove unused fields

* use query component

* use connections component

* remove unused struct

* use tab component

* use table status component

* remove unneeded return type

* update gobang.gif
3 years ago