Arijit Basu
5b710070a3
Optimize more
2021-11-15 18:08:03 +05:30
Arijit Basu
41c387542f
Fix auto jumping on cursor when visiting large dir
2021-11-15 18:08:03 +05:30
Arijit Basu
7c7351c2e8
Optimize optimization hack
2021-11-15 18:08:03 +05:30
Arijit Basu
5211e4fa40
Fix Lua API performance by caching
...
Fixes: https://github.com/sayanarijit/xplr/issues/412
2021-11-15 18:08:03 +05:30
Arijit Basu
132b528a5d
Remove trailing .
in the CLI help menu
2021-11-11 10:17:24 +05:30
Arijit Basu
d2c5f49835
Fix CD (try again)
2021-11-10 10:24:59 +05:30
Arijit Basu
296d93a81a
Fix linux gnu bin release
2021-11-10 10:03:31 +05:30
Arijit Basu
605b2bc391
Fix CD for musl
2021-11-10 09:30:26 +05:30
Arijit Basu
9d088239ea
Upgrade to 0.16.0
2021-11-10 08:08:29 +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
8e00b3e658
Add scroll for the input buffer
2021-11-06 07:36:14 +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
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
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
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
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
Arijit Basu
347b9625aa
Add padding to custom content titles
2021-10-07 14:00:56 +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
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
Gilad Woloch
3f0e479f56
Remove trivial methods
2021-10-06 13:24:56 +05:30