Commit Graph

459 Commits

Author SHA1 Message Date
Arijit Basu
b45a553a0c Add more keyboard input handlers
This PR adds 3 more keyboard input handlers:

- on_alphanumeric
- on_character
- on_navigation

Also updates documentation.
2021-11-05 13:59:26 +05:30
Arijit Basu
ca6cefb1c1 Use tui-input to handle input buffer
New message: `UpdateInputBufferFromKey` to replace most
`BufferInputFromKey` usage.

This adds more functionalities to the input buffer and reduces
boilerplate code.

This commit also deprecates `config.general.cursor` as the cursor will
be set by the terminal from now.

Repo: https://github.com/sayanarijit/tui-input
2021-11-05 10:20:30 +05:30
Arijit Basu
4495740cb0
Add fm-nvim integration 2021-11-02 15:40:58 +05:30
Shunsuke Mie
f5131b08ab Change to use PWD env vairable to get current dir
Fixes 285.
2021-11-01 19:55:28 +05:30
Arijit Basu
00030e44ff Fail if path doesn't exist 2021-10-30 16:26:11 +05:30
Arijit Basu
de6f54f9bd Fix bug with selection 2021-10-30 16:26:11 +05:30
Arijit Basu
a797d7b1c7 Format & lint code 2021-10-30 16:26:11 +05:30
Arijit Basu
2d7158afc0 Implement support path selection and force focus
Examples:

```bash
xplr $PWD /path/to/select1 path/to/select2

xplr -- $PWD /path/to/select1 path/to/select2

echo -e "$PWD\n/path/to/select1\npath/to/select2" | xplr -

ls -d /path/to/select1 path/to/select2 | xplr $PWD -
```
2021-10-30 16:26:11 +05:30
Arijit Basu
91675e28af Some cleanup 2021-10-30 16:26:11 +05:30
Tom van Dijk
102832c65c Fix suggestions and run clippy 2021-10-30 16:26:11 +05:30
Tom van Dijk
44f05c6e4b Implement --force-focus 2021-10-30 16:26:11 +05:30
Tom van Dijk
3c8de699ca Fix everything @sayanarijit fed back. 2021-10-30 16:26:11 +05:30
Tom van Dijk
cbb244f9a0 Implement --select 2021-10-30 16:26:11 +05:30
Arijit Basu
a81dd3f63f
Update awesome-plugins.md 2021-10-30 12:32:48 +05:30
Arijit Basu
abaaa91409
Add more tips for writing plugins 2021-10-30 07:52:42 +05:30
jmechnich
6efd29c3dd updated dependencies of mlua in order to fix https://github.com/sayanarijit/xplr/issues/384 2021-10-28 14:37:17 +05:30
Shunsuke Mie
05fb583f98 Add a test for pwd_watcher 2021-10-27 20:27:19 +05:30
Shunsuke Mie
c5f60951f7 Add tests for explorer
The comment outed test fails randomly.  Change the recusive function
before enableing the test.
2021-10-24 20:03:48 +05:30
Arijit Basu
ba3cf24125 Release musl binary
Closes https://github.com/sayanarijit/xplr/issues/269
2021-10-24 19:53:15 +05:30
Shunsuke Mie
1947d77a33 Change mods name for tests
There are two mod names for test, `test` and `tests`. This commit unites
the name to `tests`. It is commonly used.
2021-10-24 17:32:17 +05:30
Arijit Basu
061d1b068a Add docs to crate 2021-10-24 15:38:32 +05:30
Arijit Basu
4e1580e91f Some cleanups 2021-10-24 11:39:29 +05:30
Shunsuke Mie
41d1385020 Fix a Node type of directory
Fix a issue #364.
2021-10-24 11:39:29 +05:30
Arijit Basu
66f5acc482 Fix criterion test 2021-10-24 11:22:50 +05:30
Arijit Basu
3ec870739c Bump version 2021-10-24 10:37:02 +05:30
Arijit Basu
0328eb63c7 Fix selection count
Fixes https://github.com/sayanarijit/xplr/issues/363
2021-10-22 12:42:35 +05:30
Shunsuke Mie
13d046e6ad Move definitions runner related functions
fn runner() and fn from_cli(cli: Cli) util functions are located to
app.rs. However, those are utils for runner. So this commit change the
functions to runner.rs.
2021-10-17 21:11:52 +05:30
Shunsuke Mie
a3b400d749 Add a trace level to test CI task
To enable to get stack trace on CI, add a `RUST_BACKTRACE` env
variable. It is useful to debug.

Some rust projects applied this parameter. e.g. deno
https://github.com/denoland/deno/blob/main/.github/workflows/ci.yml#L54
2021-10-17 21:00:53 +05:30
Arijit Basu
947cfeb327
Minor fixes and format docs 2021-10-16 08:37:24 +05:30
Hans Tognon
413430d5f8 added remaining fields for general config. 2021-10-16 08:25:15 +05:30
Arijit Basu
cd9880de71
Update community.md 2021-10-09 11:19:18 +05:30
Arijit Basu
385c8fd755
Add matrix chat link 2021-10-09 11:17:01 +05:30
Arijit Basu
258937c307
Run cargo diet 2021-10-08 16:17:18 +05:30
Arijit Basu
ee48fa1568
Don't open new tabs by default 2021-10-07 17:43:27 +05:30
Arijit Basu
884cd98d0b Minor links and formatting fixes for the homepage 2021-10-07 17:42:28 +05:30
Zain ul abideen
4ad4e0894d Updates in 2nd version of xplr 2021-10-07 17:19:04 +05:30
Zain ul abideen
8c9905f7f9 Updates in 2nd version of xplr 2021-10-07 17:19:04 +05:30
Zain Ul abideen
8bac4cf92a Adding version2 of the website xplr 2021-10-07 17:19:04 +05:30
Arijit Basu
347b9625aa Add padding to custom content titles 2021-10-07 14:00:56 +05:30
Arijit Basu
4bb54d49df
Fix typo 2021-10-06 20:20:47 +05:30
Gilad Woloch
402715cdcd Remove trivial ResolvedNode methods 2021-10-06 20:18:11 +05:30
Gilad Woloch
95b580203f Introduce xor helper 2021-10-06 20:18:11 +05:30
Gilad Woloch
18b784f054 Correct typo 2021-10-06 20:18:11 +05:30
Gilad Woloch
2ef7523bb0 Derive PartialEq 2021-10-06 20:18:11 +05:30
Gilad Woloch
46287f6373 Use Result::is_ok 2021-10-06 20:18:11 +05:30
Gilad Woloch
45ad449eb3 Avoid unnecessary lambda 2021-10-06 20:18:11 +05:30
Arijit Basu
7142c97c7f
Add map.xplr 2021-10-06 13:46:42 +05:30
Gilad Woloch
a2343c05ca Correct clippy error 2021-10-06 13:24:56 +05:30
Gilad Woloch
cc022e85ff Fix cargo clippy warnings and reformat 2021-10-06 13:24:56 +05:30
Gilad Woloch
c399236fd3 Reformat 2021-10-06 13:24:56 +05:30