Commit Graph

25 Commits

Author SHA1 Message Date
Clément DOUIN b92d7b4a08 make use of pimalaya_tui::config::TomlConfig 2024-09-01 13:46:56 +02:00
Clément DOUIN 8ccabf1fc0 make tables more customizable
All tables can customize the color of their column, and the envelopes
table can customize its flag chars.
2024-08-20 10:53:21 +02:00
Clément DOUIN d26314cd48 fix cargo features 2024-08-13 11:49:46 +02:00
Clément DOUIN b773218c94 wip: fix printer, make thread compatible with it 2024-05-23 15:04:48 +02:00
Clément DOUIN 7a951b4830 fix envelope list --max-width arg
The --max-width has been accidentally renamed --table-max-width. This
commit revert the thing.
2024-05-15 14:44:38 +02:00
Perma Alesheikh 098ae380c3 use comfy-table instead of builtin impl for table
This is to out-source the table making in terminal to the external
library.

I removed the in-house table implementation since it is not used any
more, and had been replaced by comfy-table, we use this instead.

I also have reimplemented table_max_width since new implementation
removed max width , with the new implemetation it will work again.

Signed-off-by: Perma Alesheikh <me@prma.dev>
2024-05-14 18:23:34 +02:00
Perma Alesheikh 5a0ff83a5e replace anyhow and log with color_eyre and tracing
Since Himalaya is intended to be ran as a CLI in the terminal emulator
environment, their user experience could vastly improve with better and
more colorful error messages and logging.

This change will replace more minimal libraries for error-reporting/han-
dling with their more advanced counterparts.

Since these crates have tight integrations, this commit will change both
in one shot.

Also we have don't need env_logger any more. So I also have removed that
guy as well.

Signed-off-by: Perma Alesheikh <me@prma.dev>
2024-04-15 12:17:56 +02:00
Clément DOUIN d95f277bab adjust code for pimalaya new errors + sync hash 2024-04-05 11:05:55 +02:00
Clément DOUIN c1ffc40bd3 add list envelopes query cli doc 2024-03-10 10:01:01 +01:00
Clément DOUIN a8e6dea162 bump email-lib 2024-03-09 11:06:05 +01:00
Clément DOUIN 46bf3eebfc improve envelope list query error diagnostics 2024-02-29 10:21:01 +01:00
Clément DOUIN 1e7adc5e0c add query arg to envelope list command 2024-02-28 09:09:03 +01:00
Clément DOUIN 3e0cf0cfda refactor backend system, remove accouts flattening 2024-02-21 11:38:50 +01:00
Clément DOUIN 4f9705952a refactor new backend api 2024-01-27 11:15:03 +01:00
Clément DOUIN 3137e1e851 add back notmuch features (part 1) 2024-01-21 15:59:03 +01:00
Perma Alesheikh f7a7937cb1 use as_deref instead of as_ref for account.name
Reasons:
- More concise.
- Avoids the need for map(String::str).

Signed-off-by: Perma Alesheikh <me@prma.dev>
2024-01-09 21:54:21 +01:00
Clément DOUIN b0d7e773dc renamed sync feature to account-sync, put wizard stuff under feature 2024-01-09 09:28:45 +01:00
Clément DOUIN a6b863759c add one cargo feature per backend feature 2024-01-07 23:48:45 +01:00
Clément DOUIN 70fad9b1fd fix default command 2024-01-03 22:49:39 +01:00
Clément DOUIN 0352e91e36 improve backend features management for every command 2024-01-03 12:58:44 +01:00
Clément DOUIN a8c6756f56 fix envelope listing 2024-01-02 12:21:12 +01:00
Clément DOUIN d6bf407653 move watch command from folder to envelope 2023-12-14 14:12:25 +01:00
Clément DOUIN 2e0ec913cf refactor configs to match new nested api from lib 2023-12-11 18:38:00 +01:00
Clément DOUIN ef3214f36f clean doc 2023-12-08 12:18:18 +01:00
Clément DOUIN 2c33dd2f9f refactor envelope with clap derive api 2023-12-06 23:12:06 +01:00