Arijit Basu
347b9625aa
Add padding to custom content titles
3 years ago
Gilad Woloch
402715cdcd
Remove trivial `ResolvedNode` methods
3 years ago
Gilad Woloch
95b580203f
Introduce `xor` helper
3 years ago
Gilad Woloch
18b784f054
Correct typo
3 years ago
Gilad Woloch
2ef7523bb0
Derive `PartialEq`
3 years ago
Gilad Woloch
46287f6373
Use `Result::is_ok`
3 years ago
Gilad Woloch
45ad449eb3
Avoid unnecessary lambda
3 years ago
Gilad Woloch
a2343c05ca
Correct `clippy` error
3 years ago
Gilad Woloch
cc022e85ff
Fix `cargo clippy` warnings and reformat
3 years ago
Gilad Woloch
c399236fd3
Reformat
3 years ago
Gilad Woloch
3f0e479f56
Remove trivial methods
3 years ago
Arijit Basu
9982a205db
Downgrade version for the docs
...
Upgrade version when just before making a new release, else the doc will
link to invalid release.
3 years ago
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.
3 years ago
Gilad Woloch
ac1b40799a
Apply `rustfmt`
3 years ago
Gilad Woloch
394c09ae87
Merge normal/reversed cases in `NodeSorterApplicable::apply`
3 years ago
Arijit Basu
e0c1581a0a
Optimize silent calls
...
Silent calls don't need to pause input reading as they are non
interactive and quickly finish execution.
3 years ago
Arijit Basu
5e96d48135
Major release 0.15.0
3 years ago
Arijit Basu
dd73220ec8
Support switching modes keeping input buffer.
...
Closes: https://github.com/sayanarijit/xplr/issues/303
3 years ago
Arijit Basu
ac1476bc08
Cleanup
3 years ago
Arijit Basu
aee49dad78
Support terminal colors in custom layout
...
Example:
```lua
xplr.config.layouts.builtin.default = {
CustomContent = {
title = "custom title",
body = {
StaticParagraph = { render = "\x1b[31mcustom body\x1b[0m" },
},
},
}
```
3 years ago
Arijit Basu
5eab3c6033
Support defining custom layout for different modes
...
Closes: https://github.com/sayanarijit/xplr/issues/335
3 years ago
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
3 years ago
Arijit Basu
5723acc21b
Fix input conversion logic
3 years ago
Arijit Basu
e3150798d9
Disable recover mode by default
...
Closes: https://github.com/sayanarijit/xplr/issues/330
3 years ago
Arijit Basu
14b14bba42
Let's get a hew home - xplr.dev
...
Thanks to your continued support we're getting a new homepage https://xplr.dev
3 years ago
Arijit Basu
696549e2e5
Remove `config` from CallLuaArg
...
The `Config` object is globally available as `xplr.config`, and thus
it's redundant. Config is read only once, when xplr loads.
Closes https://github.com/sayanarijit/xplr/issues/321
3 years ago
Arijit Basu
69d3b3af46
Add focus selection UI
...
Closes: https://github.com/sayanarijit/xplr/issues/322
3 years ago
Arijit Basu
3f668c2d04
Improve runner API
...
Some API improvements on top of #324
3 years ago
Tom van Dijk
671d1b11fd
Refactored parts of `runner::Runner` to take a Cli struct, instead of putting everything manually in `Runner`.
3 years ago
Arijit Basu
1756332e5b
Fallback to tempdir if runtime is inaccessible
...
Fixes: https://github.com/sayanarijit/xplr/issues/319
3 years ago
Arijit Basu
1b1032d0bd
Fix missing config error
...
Do not report error when config file is missing and it's not specified
via CLI args.
3 years ago
Arijit Basu
abc7011f56
Test upgrade guild is up to date.
...
Never miss updating the upgrade guide again
3 years ago
Arijit Basu
7cc8c621ef
Update version
3 years ago
Arijit Basu
61657a70c7
Add support for loading extra config files
...
Use `-C` / `--extra-config` to load Lua files to overwrite the default
or user defined config.
This helps with integration, where integrating xplr with another tool
requires xplr to overwrite some config, without requiring the users to
install an xplr plugin or update the xplr config.
Example:
```bash
xplr -C one.lua two.lua
# Or
xplr -C one.lua -C two.lua
```
> **WARNING:**
>
> Extra config doesn't require specifying the `version`, hence, it's the
> integration author or the user's responsibility to assert
> compatibility using the globally exposed `version` in the extra config
> files, similar to xplr plugins.
Ref: https://github.com/sayanarijit/xplr/issues/316
3 years ago
Arijit Basu
7b2b29b27d
Cleanup - Format Lua code
3 years ago
Arijit Basu
af5a99328f
Update version
3 years ago
Arijit Basu
35c18a25dc
Remove per directory buffer
...
Closes: https://github.com/sayanarijit/xplr/issues/289
3 years ago
Arijit Basu
7d0605479e
Allow dynamic linking to load Lua modules using C
...
Also upgrade packages.
Closes: https://github.com/sayanarijit/xplr/issues/309
3 years ago
Arijit Basu
865d6930db
Use unsafe lua to allow c modules
...
Closes: https://github.com/sayanarijit/xplr/issues/309
3 years ago
Arijit Basu
f1e75caf89
Remove termion dependency
...
Termion is only used to get TTY which is simple enough to implement.
3 years ago
Arijit Basu
9070cd9e17
Add more docs
3 years ago
Arijit Basu
6162744bef
Minor improvements
...
Closes: https://github.com/sayanarijit/xplr/issues/305
3 years ago
Arijit Basu
f5aceb1e66
Make the number of visible logs dynamic
...
It helps to see all the logs when switching to a bigger InputAndLogs
layout.
3 years ago
Arijit Basu
db9c926b0c
Update version
3 years ago
Arijit Basu
b1ce57d68b
Recursively clean session path
...
Fixes: https://github.com/sayanarijit/xplr/issues/293
3 years ago
Arijit Basu
6babfeb3d6
Minor improvements
...
Fixes: https://github.com/sayanarijit/xplr/issues/284
Closes: https://github.com/sayanarijit/xplr/issues/286
Partially fixes: https://github.com/sayanarijit/xplr/issues/285
3 years ago
Arijit Basu
4307ba657a
Fix ToggleSelectionByPath
...
Fixes: https://github.com/sayanarijit/xplr/issues/295
3 years ago
Arijit Basu
d29f6aed6d
Fix StartFifo and ToggleFifo
...
Also add `xplr.config.general.start_fifo`.
Closes: https://github.com/sayanarijit/xplr/issues/280
3 years ago
Arijit Basu
b61bf9dcf2
Increase poll timeout
...
Ref: https://github.com/sayanarijit/xplr/issues/10
3 years ago
Arijit Basu
ed65d85568
Remove auto refresh service
...
Ref: https://github.com/sayanarijit/xplr/issues/10
3 years ago