Commit graph

14 commits

Author SHA1 Message Date
Patrick Decat
24388033a5
Show preview of selected command ()
* Only show help if terminal strictly has more than one line

* There is no border around the input line in compact mode

* Add command preview

* Dynamic preview height

* Avoid extra allocations

Co-authored-by: Conrad Ludgate <oon@conradludgate.com>

* Address clippy error

* Merge normal and compact views code

* Add show_preview setting, disabled by default

* Convert `bool` to `int` with `if` for legibility

---------

Co-authored-by: Conrad Ludgate <oon@conradludgate.com>
2023-03-05 18:36:35 +00:00
Ellie Huxtable
5f2db5b93e
Revert "Remove shortcut numbers ()" ()
This reverts commit 3fdd4f4591.
2023-02-24 15:49:05 +00:00
Ellie Huxtable
3fdd4f4591
Remove shortcut numbers ()
* Remove shortcut numbers

I was also going to remove the offset so scrolling only happens at the
top. But tbh, I quite like it this way.

* Remove key binding
2023-02-15 09:08:39 +00:00
Ellie Huxtable
2672f78dda
make update_needed check lazy () 2023-02-10 18:14:48 +00:00
Conrad Ludgate
edda1b741a
crossterm support ()
* crossterm v2

* patch crossterm

* fix-version

* no more tui dependency

* lints
2023-02-10 17:25:43 +00:00
Baptiste
582189336d
chore(): Exit atuin when pressing down arrow on most recent entry ()
Signed-off-by: Baptiste Roux <arte.but.posix@gmail.com>

Signed-off-by: Baptiste Roux <arte.but.posix@gmail.com>
2023-01-10 22:46:33 +00:00
Patrick Decat
ed394afa82
Allow overriding filter and search modes from CLI ()
* Allow overriding filter and search modes from CLI arguments

* Use session filter mode for bash up key binding

* We precisely do not want to add quotes here so that all arguments are properly passed

* Add --shell-up-key-binding hidden command argument and filter_mode_shell_up_key_binding configuration option to allow customizing the filter mode used when atuin is invoked from a shell up-key binding

* Correct up binding for zsh

Co-authored-by: Ellie Huxtable <ellie@elliehuxtable.com>
2022-12-18 18:26:09 +00:00
Ellie Huxtable
4c6a287f4d
Switch to using ATUIN_LOG instead of RUST_LOG ()
* Switch to using ATUIN_LOG instead of RUST_LOG

* Stop clippy complaining

* I should know better - clippy is never happy :(
2022-12-16 18:37:45 +00:00
Patrick Decat
1d9ce94f96
Add support for some additional keys in interactive mode ()
* Ignore tab key in interactive mode

* Support home and end keys in interactive mode

* Support delete key in interactive mode
2022-12-03 10:51:15 +00:00
Sam Lanning
4768b16b74
Add setting for keeping typed query when exiting ()
* Add option for keeping typed query on escape

fixes 

* chore: Address duplicate if statement blocks
2022-11-06 07:34:14 +00:00
Ellie Huxtable
f03f6e9ad7
Add automatic update checking ()
* Add automatic update checking

* Add setting to opt out of update checks

* Document options

* no

* no

* also no

* Make clippy happy

* Update atuin-client/src/settings.rs

Co-authored-by: Conrad Ludgate <conradludgate@gmail.com>

* fix features

Co-authored-by: Conrad Ludgate <conradludgate@gmail.com>
Co-authored-by: Conrad Ludgate <conrad.ludgate@truelayer.com>
2022-10-14 10:59:21 +01:00
Conrad Ludgate
db2a00f456
custom history list ()
* use custom list impl

* fmt

* segment

* clean up

* fix offsets

* fix scroll back space

* small touch ups
2022-09-12 20:39:41 +01:00
Conrad Ludgate
e8c8415278
update default layout ()
* update layouts

* add other duration changes

* fmt :(
2022-09-12 20:19:22 +01:00
Conrad Ludgate
702a644f68
better cursor search ()
* improve cursor code

* proper unicode support

* refactor and test

* fmt

* clippy

* move methods to state

* refactor search modules
2022-09-11 16:24:16 +01:00