Arijit Basu
f10fad958d
Upgrade deps
2022-09-10 23:19:47 +05:30
Arijit Basu
e04b0964ae
Use 89 chars line length
2022-06-02 22:45:19 +05:30
Arijit Basu
a797d7b1c7
Format & lint code
2021-10-30 16:26:11 +05:30
Arijit Basu
91675e28af
Some cleanup
2021-10-30 16:26:11 +05:30
Arijit Basu
bec80e98df
Improve input reading by eliminating pause
...
Stop the thread instead of pausing it. This improves the CPU usage and
responsiveness a slightly.
2021-10-05 23:28:32 +05:30
Arijit Basu
85cc956792
Fix reading input
...
Wait for confirmation after sending a message to a thread.
Also, use unwrap() to crash and burn than using unwrap_or_default() when
message passing fails.
It's highly unlikely to happen and also trivial to the core logic. But
let's see the error when it does happen.
Fixes https://github.com/sayanarijit/xplr/issues/301
2021-10-04 20:14:16 +05:30
Arijit Basu
b61bf9dcf2
Increase poll timeout
...
Ref: https://github.com/sayanarijit/xplr/issues/10
2021-06-22 10:20:10 +05:30
Arijit Basu
36ab821d2c
Upgrade dependencies
...
Closes: https://github.com/sayanarijit/xplr/issues/187
2021-06-04 21:52:25 +05:30
Arijit Basu
5c179a9b70
Add optional mouse handler
...
Mouse actions will be enabled on devices that support it.
Because sometimes, scrolling with mouse is the laziest way to navigate.
2021-05-21 18:45:17 +05:30
Arijit Basu
c5b461f795
Increase the input poll timeout
...
The input poll timeout needs to stay low, else xplr will panic when you
spawn a subshell and start typing immediately.
From the `top` command, it didn't show any noticeable overhead.
2021-05-13 13:33:23 +05:30
Arijit Basu
7588620c8f
Hind logs when switching to input mode
...
Ref: https://github.com/sayanarijit/xplr/pull/143#issuecomment-840069000
2021-05-13 13:33:23 +05:30
Arijit Basu
c8dba61d4b
Further optimize performance and CPU usage
...
- Optimize by avoiding cloning the whole app in each iteration of the main
loop.
- Increase the input poll timeout from 1 to 200. This works because the
poll will not apply to key hold.
- Do not read input pipe if it hasn't been modified.
2021-05-12 23:03:00 +05:30
Arijit Basu
9e89c6503d
Use key tab
to select files in search mode
...
Select files fzf style in search mode, without losing the search input.
Also, make background tasks failsafe and measure ui rendering.
2021-05-08 19:57:38 +05:30
Arijit Basu
1a08318593
Improve CPU usage attempt 2
...
Fixes: https://github.com/sayanarijit/xplr/issues/10
2021-04-22 22:53:31 +05:30
Arijit Basu
2596c0c4c3
Remove task priority
...
Since we are now blocking on task inputs, the priority is no longer
required.
2021-04-09 15:29:05 +05:30
Arijit Basu
09abda29a3
Several optimizations
...
- Write to pipes only when the value changes.
- Sleep when not reading key event or messages.
Fixes: https://github.com/sayanarijit/xplr/issues/10
2021-04-07 01:59:02 +05:30
Arijit Basu
dba8631911
Add CI/CD gh actions
...
Mostly stolen from https://github.com/Rigellute/spotify-tui .
2021-04-05 12:32:40 +05:30
Arijit Basu
af8a637030
Logging, testing and other improvements
2021-04-03 11:32:05 +05:30
Arijit Basu
c0ca596539
Fix create mode, refactor readers, fix init focus
2021-04-02 18:03:56 +05:30