Commit Graph

595 Commits

Author SHA1 Message Date
Arijit Basu
ac1476bc08
Cleanup 2021-10-05 14:03:32 +05:30
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" },
    },
  },
}
```
2021-10-05 13:52:28 +05:30
Arijit Basu
5eab3c6033 Support defining custom layout for different modes
Closes: https://github.com/sayanarijit/xplr/issues/335
2021-10-05 13:22:45 +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
8c42a62c93 Try in docker 2021-10-04 11:35:07 +05:30
Arijit Basu
5723acc21b Fix input conversion logic 2021-10-04 11:32:13 +05:30
Arijit Basu
9e08287c31 Fix CI 2021-09-28 22:12:32 +05:30
Arijit Basu
e3150798d9 Disable recover mode by default
Closes: https://github.com/sayanarijit/xplr/issues/330
2021-09-28 22:12:32 +05:30
Arijit Basu
bb5dcff0bf
Use --locked in CI/CD & remove daily compile check
Daily compile check doesn't capture runtime errors. It's better to
--locked and be safe.
2021-09-27 21:47:59 +05:30
Arijit Basu
20bb7939fe Fix gh pages CNAME 2021-09-27 20:46:15 +05:30
Arijit Basu
068d45e657 Always pass --locked when installing using cargo
Closes: https://github.com/sayanarijit/xplr/issues/332
2021-09-27 20:40:10 +05:30
Arijit Basu
6ae7c96937 Improve xplr homepage 2021-09-23 16:49:52 +05:30
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
2021-09-23 14:49:10 +05:30
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
2021-09-22 18:56:41 +05:30
Arijit Basu
69d3b3af46 Add focus selection UI
Closes: https://github.com/sayanarijit/xplr/issues/322
2021-09-22 07:59:24 +05:30
Arijit Basu
3f668c2d04 Improve runner API
Some API improvements on top of #324
2021-09-17 09:33:55 +05:30
Tom van Dijk
671d1b11fd Refactored parts of runner::Runner to take a Cli struct, instead of putting everything manually in Runner. 2021-09-17 09:01:39 +05:30
Arijit Basu
a6dcd476aa
Update TODOs 2021-09-10 22:53:48 +05:30
Arijit Basu
a7f7fa0012
Fix link 2021-09-02 21:02:23 +05:30
Arijit Basu
f1c417063d
Improve documentation
Remove some TODO, add more links.
2021-09-02 20:59:09 +05:30
Arijit Basu
275c4d0b7b
Add command-mode.xplr 2021-09-02 18:32:01 +05:30
Arijit Basu
9685cdedcb
Add xplr.nvim, nvim-ctrl.xplr 2021-09-02 13:03:23 +05:30
Arijit Basu
ad6c8b7617
Update deps 2021-09-02 10:13:17 +05:30
Arijit Basu
44a6b6f1b0
Fix doc links 2021-09-02 10:11:19 +05:30
Arijit Basu
e9a48613de
Add plugin alacritty.xplr 2021-09-02 10:09:04 +05:30
Arijit Basu
1756332e5b Fallback to tempdir if runtime is inaccessible
Fixes: https://github.com/sayanarijit/xplr/issues/319
2021-09-02 10:11:14 +05:30
Arijit Basu
1b1032d0bd Fix missing config error
Do not report error when config file is missing and it's not specified
via CLI args.
2021-09-02 10:11:14 +05:30
Arijit Basu
abc7011f56
Test upgrade guild is up to date.
Never miss updating the upgrade guide again
2021-08-27 09:42:33 +05:30
Arijit Basu
e7c3c7044e
Update upgrade guide 2021-08-27 09:29:28 +05:30
Arijit Basu
7cc8c621ef Update version 2021-08-27 09:20:49 +05:30
Arijit Basu
79b3676662
Improve doc
Make links readable.
2021-08-27 08:58:38 +05:30
Arijit Basu
a5607a8186
Improve doc
Add related links to "Writing Plugins".
2021-08-27 08:55:46 +05:30
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
2021-08-23 11:44:58 +05:30
Arijit Basu
d6766919de
Update awesome-plugins.md 2021-07-31 15:50:44 +05:30
Arijit Basu
1c9b8322ec
Update awesome-plugins.md 2021-07-31 15:37:04 +05:30
Arijit Basu
b66155895a
Update awesome-plugins.md 2021-07-31 15:34:41 +05:30
Arijit Basu
7b2b29b27d Cleanup - Format Lua code 2021-07-31 15:32:55 +05:30
Arijit Basu
af5a99328f Update version 2021-07-29 23:28:31 +05:30
Arijit Basu
35c18a25dc Remove per directory buffer
Closes: https://github.com/sayanarijit/xplr/issues/289
2021-07-29 23:19:41 +05:30
Arijit Basu
7d0605479e Allow dynamic linking to load Lua modules using C
Also upgrade packages.

Closes: https://github.com/sayanarijit/xplr/issues/309
2021-07-29 21:45:45 +05:30
Arijit Basu
865d6930db Use unsafe lua to allow c modules
Closes: https://github.com/sayanarijit/xplr/issues/309
2021-07-29 21:45:45 +05:30
Arijit Basu
f1e75caf89 Remove termion dependency
Termion is only used to get TTY which is simple enough to implement.
2021-07-29 20:36:12 +05:30
Arijit Basu
5626335e0e
More docs 2021-07-20 22:26:10 +05:30
Arijit Basu
9070cd9e17 Add more docs 2021-07-20 22:18:43 +05:30
Arijit Basu
6162744bef Minor improvements
Closes: https://github.com/sayanarijit/xplr/issues/305
2021-07-20 14:53:53 +05:30
Arijit Basu
1b6ea5b63c
Add icons.xplr 2021-07-17 06:46:28 +05:30
Arijit Basu
6b926c2b88
Minor fix again 2021-07-15 19:37:08 +05:30
Arijit Basu
d6893130a6
Minor doc fixes 2021-07-15 19:34:34 +05:30
Arijit Basu
3171c37d4e
Add type-to-nav.xplr to awesome plugins 2021-07-15 19:31:10 +05:30
Arijit Basu
a12818ea30
Add qrcp.xplr 2021-07-14 21:57:55 +05:30