Commit Graph

13 Commits (main)

Author SHA1 Message Date
Takayuki Maeda 4bcd4802fc
Add SQL Editor component (#84)
* syntax text

* add sql editor

* remove sytaxx_text module

* remove sytax_text

* add a focus above key

* add a event for movining focus and table component

* add syntax text component

* add a key for executing queries

* add completion

* add reserved words

* update completion when key is delete or left/right

* use reserved words in where clause

* editor

* add a macro for debugging

* stop inserting a new line in the sentence

* remove run key

* enter to execute a query

* fix tests for stateful paragraph

* change const to let
3 years ago
Takayuki Maeda f42ebafe68
Enter to expand database tree (#85)
* enter to expand database tree

* always check if the key is enter

* return current_selection

* fix clippy warnings
3 years ago
Takayuki Maeda 6bc3afef12 move table_status under table 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 8f26ffed09
Highlight filter keywords (#34)
* highlight filter keywords

* remove src from gitignore

* move tree_nav

* remove unneeded line

* refactor databases component

* fix variable names

* update gobang.gif

* add scroll_up_down_multiple_lines command help

* add tests for tree_item_to_span
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 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 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
Takayuki Maeda acac235c6e
Implement DatabaseTree (#10)
* remove unused functions

* remove unused functions

* use databasetree

* update gobang.gif

* refactor

* remove unused dependencies

* fix header's and row's default style
3 years ago
Takayuki Maeda 8ca65cafa4
Implement structure tab (#9)
* implement structure tab

* fix border colors

* remove margin
3 years ago
Takayuki Maeda b8c36b5f94
implement query widget (#8) 3 years ago
Takayuki Maeda 4b26b71a38
Refactor handlers (#3)
* fix workflows

* remove a unused function

* initialize record table state every time specifying table

* add a crates.io badge

* close pool if exists

* remove unneeded lines

* change gobang.gif

* fix layout

* update gobang.gif

* refactor `utils::get_records`

* refactor handlers

* change gobang.gif

* fix clippy warnings
3 years ago
Takayuki Maeda 82b47a1c78
Architecture (#1)
* layout

* architecture

* implement side-scrolling

* implement util functions

* use user config

* use config conn

* remove cache

* fix user config

* add useful functions

* remov mut

* cargo clippy --fix

* cargo fmt

* implement some handlers

* add gif

* chang gif
3 years ago