Commit Graph

475 Commits

Author SHA1 Message Date
Arijit Basu
9d088239ea Upgrade to 0.16.0 2021-11-10 08:08:29 +05:30
Igor Epstein
a5a71c9191 Add context-switch plugin to docs 2021-11-10 05:20:40 +05:30
Arijit Basu
24637449a3
Improve CLI help 2021-11-07 11:55:47 +05:30
Arijit Basu
f78d9e99fd
Remove debug statement and add tests 2021-11-07 09:14:33 +05:30
Arijit Basu
2acfc97653
Update awesome-plugins.md 2021-11-06 19:14:26 +05:30
Arijit Basu
98799d0967
add ouch.xplr 2021-11-06 15:27:16 +05:30
Arijit Basu
8e00b3e658
Add scroll for the input buffer 2021-11-06 07:36:14 +05:30
Arijit Basu
3692647a7a
Update debug-key-bindings.md 2021-11-05 19:03:03 +05:30
Arijit Basu
858b4066ca
Update quickstart.md 2021-11-05 18:52:28 +05:30
Arijit Basu
3ac39fd8f4
Fix doc link 2021-11-05 18:09:23 +05:30
Arijit Basu
b0c91a954e
Improve update_input_buffer 2021-11-05 18:05:04 +05:30
Arijit Basu
074217f21e Fix issue with input buffer 2021-11-05 18:07:20 +05:30
Arijit Basu
48ab6eac21 Add on_function key handler
This adds `on_function` handler to handle F1-F12 keys.

This also fixes issues with previously added handlers and adds a
checklist for future additions.
2021-11-05 17:54:17 +05:30
Arijit Basu
6a3b26cc18 Add support for LuaEval(Silently) messages
This PR adds support for quickly executing arbitrary lua functions,
without needing to define a function.

Example:

```lua
xplr.config.modes.builtin.default.key_bindings.on_key["#"] = {
  help = "test",
  messages = {
    { LuaEvalSilently = [[return { { LogInfo = "foo" } }]] },
    { LuaEval = [[return { { LogInfo = io.read() } }]] },
  },
}
```

Partly closes: https://github.com/sayanarijit/xplr/issues/394
2021-11-05 17:01:19 +05:30
Arijit Basu
165d992b75 Fix logs UI
Fixes: https://github.com/sayanarijit/xplr/issues/396
2021-11-05 15:26:13 +05:30
Arijit Basu
05c2f7aa68 Support more control over input buffer
This PR adds a new message: `UpdateInputBuffer: InputOperation`

This makes it possible to perform cursor based input operations without
needing input from the keyboard.
2021-11-05 15:12:50 +05:30
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