sebashwa
468611de70
Implement <Ctrl-d> for char deletion under cursor
...
In inputs
2 years ago
sebashwa
2af554341b
Implement <Alt-d> to forward delete words in input
...
Until a non alphanumeric char.
2 years ago
sebashwa
195dc95a1b
Implement <Alt-f> to move forwards in inputs
...
Until the next occurence of a nonalphanumeric char.
2 years ago
sebashwa
f108b28d5f
Add <Alt-b> for input navigation
...
Move backwards until first non alphanumeric occurence.
2 years ago
sebashwa
f090dd07d5
Allow input navigation with <Ctrl-f> and <Ctrl-b>
2 years ago
sebashwa
dc9d7fd44f
Allow database tree navigation while filtering
...
This makes UX much smoother IMHO.
The filter focus is now moved back to the tree by pressing <Esc> while
in filtering mode.
2 years ago
sebashwa
fff86b95d1
Add alt backspace keybinding for inputs
...
This deletes in the left direction until a non alphanumeric character is
found.
2 years ago
sebashwa
8ab2d44d53
Update database tree directly after filter change
...
The database tree was updated for the filter string of the previous key
press before. This became more apparent with the new movements like
'delete word' (Ctrl-w).
2 years ago
sebashwa
221d10ee91
Introduce helper methods for input key safeguards
2 years ago
sebashwa
a55f0fe3e7
Change interface for moving cursor to whitespace
2 years ago
sebashwa
898424209b
Add delete word for inputs
...
<Ctrl-w> deletes the input from the current cursor position up to the
first occurence of a whitespace before the current position.
2 years ago
sebashwa
1d0b79ec48
Use early returns in input util key matching
2 years ago
sebashwa
ffe5ce2166
Add happy path tests for input key handling
2 years ago
sebashwa
96680c2afb
Add new util input helper
...
Most of the input logic was duplicated in three places as of now:
* Database filter input
* SQL Editor
* Table filter
This is done in preparation for adding more cursor movement
functionality for inputs.
2 years ago
Santo Cariotti
de0d57c9a3
Fix JSON conversion of the table name which is also a keyword ( #133 )
...
Similarly to escape the table name in the SELECT command query, here we
escape the table name with apostrophes.
In fact, `to_json()` raised a "Syntax error" for table that uses a keyword as
its name.
3 years ago
mi-wada
f96a573502
Changed to check case insensitively ( #132 )
3 years ago
ryo watanabe
403b9c7385
feature connection alias ( #129 )
...
* feature connection alias
* add database_url_with_name method to Connection
* Revert "feature connection alias"
This reverts commit 88b70c1c33
.
* fix struct error
* fix review #129
* fix review
* fix type error
3 years ago
Sho Hirose
9e5373509e
fix typo ( #130 )
...
* fixed typo
* add a target to ignore
* Revert "add a target to ignore"
This reverts commit c33fee37
3 years ago
Takayuki Maeda
36b1da0afa
Create PropertiesComponent and redesign layout ( #128 )
...
* create properties component
* refactor app.rs
* add a test for checking if gobang has overlappted keys
* add keys for switching tabs to properties
* fix tab
* add serialize
* update record_table
* add properties group
* use serialize only in tests
* remove alias
* remove query field
3 years ago
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
7a202aa8b9
Expand tilde and environment variables in path field ( #120 )
...
* expand tlide in path field
* join path
* implement `expand_path`
* fix compile error on Windows
* fix typo
* use HOMEPATH
* fix home dir
* use HOME env
3 years ago
Takayuki Maeda
78d1297452
Refactor filter components ( #114 )
...
* prevent cursor from sticking out of paragraph
* define StatefulDrawableComponent
* use database filter component
* fix event order
3 years ago
Takayuki Maeda
950992df8d
Enable to change database tree width ( #99 )
...
* add a border width
* add a left_chunk_percentage field
* add keys for extending widget width
* fix completion pop-ups so that they do not protrude from frame
* use expand_or_shorten_widget_width
* handle extend shorten widget width event after component events
* add tests
* add command description
* add tests
* change commands help order
* fix extend_or_shorten_widget_width help
* change left_chunk_percentage to left_main_chunk_percentage
3 years ago
Takayuki Maeda
4fc75b3a6d
increase database connection timeout ( #109 )
3 years ago
Takayuki Maeda
ef8194b449
Fix SQL syntax error in PostgreSQL `get_record` ( #101 )
...
* fix SQL syntax error
* v0.1.0-alpha.4
* revert database-tree version
3 years ago
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
utam0k
204f3a9d79
remove a unnecessary code.
3 years ago
utam0k
922c605b39
use else if to ensure that try_get is only called once.
3 years ago
utam0k
08a70fe76d
reduce duplicate codes bacause of try_get() to make it a little easier to read.
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
7fb3565992
use pool options ( #86 )
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
6f8b13714a
Add number type to postgres ( #78 )
...
* add number type to postgres
* fix README
* add bool type to postgres
* add contribution section
3 years ago
Takayuki Maeda
0fb5d77dc6
Add password field to config ( #74 )
...
* create FUNDING.yml
* add password field
* add a example using password field to README
3 years ago
Takayuki Maeda
1437f71717
Bump up dependency versions ( #62 )
...
* bump up dependency versions
* fix ci.yml
* turn off incremental compilation
* bump up sqlx version
* fix rust
* remove unused features
* add profile
* optimize proc macro
* default features false in database-tree
* remove sqlx from database-tree
* remove --release
* fix
* bump up opt-level 2
* 1
* sqlx 3
* remove profile
* remove windows gnu
* remove windows-gnu
* cache dependencies
* remove windows gnu
* fix typo
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
919d0753f0
create version module
3 years ago
Takayuki Maeda
83b3e21997
use version module
3 years ago
Takayuki Maeda
78ba8459ad
implement a log macro
3 years ago
Takayuki Maeda
3c1e6d13e9
early return error
3 years ago
Takayuki Maeda
7cc4bb7eb1
fix table status
3 years ago
Takayuki Maeda
4a3d32cf9b
fix clippy warnings
3 years ago
Takayuki Maeda
1cd7ddf425
use a outside scroll bar with no borders
3 years ago
Takayuki Maeda
6bc3afef12
move table_status under table
3 years ago
Takayuki Maeda
ce312c435a
get index_name
3 years ago
Takayuki Maeda
ba3dcaad69
add queries for SQLit
3 years ago
Takayuki Maeda
4dbf3fd922
upper case
3 years ago
Takayuki Maeda
bba5883c5f
create sqlite module
3 years ago
Takayuki Maeda
24c9b27a43
Add Configuration section to README ( #47 )
...
* add configuration section to README
* fix README
* update gobang.gif
* remove name field
3 years ago
Takayuki Maeda
ae639a3da2
get indexes ( #46 )
3 years ago