Commit Graph

714 Commits

Author SHA1 Message Date
Arijit Basu
deb28fa14a Add initial support for hooks
A new optional section of the configuration defined using the lua return
statement, which can be used to define append only things, such as hooks
and callbacks, specific to each config file.

Example

```lua
version = "0.0.0"

return {
  -- Adds messages to pass when xplr loads (similar to `--on-load`)
  on_load = {
    { LogInfo = "Hello xplr user," },
    { LogSuccess = "Configuration successfully loaded!" },
  }
}
```
2022-10-27 00:55:12 +05:30
Arijit Basu
723dd6ec2c Even better error messages 2022-10-27 00:55:12 +05:30
Arijit Basu
4a34780eb4
Improve errors messages -m and -M 2022-10-26 17:43:05 +05:30
Arijit Basu
b05e702536
Actually validate the passed message 2022-10-26 14:24:55 +05:30
Arijit Basu
baa8759d68
Minor performance improvement 2022-10-26 14:23:29 +05:30
Arijit Basu
52c8e05a1e
Fix clippy error 2022-10-26 14:04:19 +05:30
Arijit Basu
65eee2dc90
Use serde_yaml::with::singleton_map_recursive 2022-10-26 13:59:39 +05:30
Arijit Basu
77852b435f
Error on missing *-msg-in arguments 2022-10-26 11:54:43 +05:30
Arijit Basu
060544a2b8
Minor fixes 2022-10-26 10:34:38 +05:30
Arijit Basu
e51818dfc1
Fix cargo release 2022-10-26 04:30:56 +05:30
Arijit Basu
f8b16a7ddd Rebase main 2022-10-26 04:15:33 +05:30
Arijit Basu
85c4253782 Upgrade version 2022-10-26 04:15:33 +05:30
Arijit Basu
1d829c36e6 Implement -M, --print-msg-in
To help with creating safe arguments for --on-load.

e.g.

```
xplr --on-load $(xplr -M 'ChangeDirectory: %q' "${HOME:?}")
```
2022-10-26 04:15:33 +05:30
Arijit Basu
7c730557f2 Shell escape SRC and TARGET for logging 2022-10-26 04:15:33 +05:30
Arijit Basu
93e9b2b2ae There's no end of arguments for -m 2022-10-26 04:15:33 +05:30
Arijit Basu
3fb174cdc0 Allow using -m outside of xplr shell for debugging
Also validate the message before passing.
2022-10-26 04:15:33 +05:30
Arijit Basu
111a648818 Shell escape file paths in logs 2022-10-26 04:15:33 +05:30
Arijit Basu
1e820030a0 Implement subcommand -m / --pipe-msg-in 2022-10-26 04:15:33 +05:30
Arijit Basu
bffe1d43ec Escape newline in selection list 2022-10-26 04:15:33 +05:30
Arijit Basu
fbe6b2be10 Improve parsing CLI arguments 2022-10-26 04:15:33 +05:30
Arijit Basu
88fe71779b Add best practices section 2022-10-26 04:15:33 +05:30
Arijit Basu
91e3990df1 Rename messages 2022-10-26 04:15:33 +05:30
Arijit Basu
7b8f38df5b Update is_readonly 2022-10-26 04:15:33 +05:30
Jeremy Cantrell
2b5755aa8a An attempt at safer message passing. 2022-10-26 04:15:33 +05:30
Arijit Basu
895d55ca23
Minor improvement 2022-10-24 11:23:49 +05:30
Arijit Basu
1d20039fae
Improve log rendering 2022-10-24 10:32:53 +05:30
Arijit Basu
c93202b649
Minor improvements 2022-10-24 10:03:16 +05:30
Arijit Basu
89b3731b56
Fix serialization error 2022-10-24 09:29:06 +05:30
Arijit Basu
ae714e9713
Update xplr.desktop 2022-10-17 19:11:58 +05:30
Arijit Basu
a4f98f0b63
Add tri-pane.xplr 2022-10-13 23:18:00 +05:30
Arijit Basu
bd478ff64b Update serde_yaml to 0.9 2022-10-12 12:42:49 +05:30
Arijit Basu
57483bef41 Use fuzzy search instead of regex search
Ref: https://github.com/sayanarijit/xplr/issues/496
2022-10-06 20:48:29 +05:30
Arijit Basu
93bd53bbcb Add quick scrolling
Not ideal, but better than nothing.

Closes: https://github.com/sayanarijit/xplr/issues/509
2022-10-06 20:42:23 +05:30
Arijit Basu
81e83365f2
Document how to try out the hacks. 2022-09-21 17:54:02 +05:30
Arijit Basu
58c572d77a Fix directory explore scheduling
Fixes https://github.com/sayanarijit/xplr/issues/503
2022-09-11 08:16:38 +05:30
Arijit Basu
f2713d9549
Fix support for readline keys 2022-09-11 02:03:20 +05:30
Arijit Basu
12264722ef
Add missing doc 2022-09-11 01:39:35 +05:30
Arijit Basu
d579832c69 Update version 2022-09-11 01:31:46 +05:30
Arijit Basu
4e9c056a10 Custom input prompts for different modes without SetInputPrompt
Closes: https://github.com/sayanarijit/xplr/issues/502
2022-09-11 01:16:11 +05:30
Arijit Basu
b4ba56aa72 Fix regex deserialization
Fixes https://github.com/sayanarijit/xplr/issues/503
2022-09-11 00:45:27 +05:30
Arijit Basu
096e520a2b Fix clippy err 2022-09-10 23:19:47 +05:30
Arijit Basu
5dcaca3816 Document new input operation 2022-09-10 23:19:47 +05:30
Arijit Basu
f10fad958d Upgrade deps 2022-09-10 23:19:47 +05:30
Arijit Basu
9f9a6f9d73 Parse file UID and GID
Closes https://github.com/sayanarijit/xplr/pull/494
2022-09-10 23:19:47 +05:30
Arijit Basu
d8ff70bcaa
Fix typo 2022-07-28 19:30:35 +05:30
Arijit Basu
12d2020f01
Improve preview hacks 2022-07-21 10:23:46 +05:30
Matt_BSD
d6d7e70425 Added FreeBSD to a list of OSes
Added FreeBSD 13.1-RELEASE to a list of OSes on which the image preview hack and text preview hack were tested on.
2022-07-21 07:47:53 +05:30
Arijit Basu
846e0c7f60
Update awesome-plugins.md 2022-07-19 00:33:34 +05:30
Arijit Basu
c42c4dc69d
Fix doc 2022-07-17 12:03:03 +05:30
Arijit Basu
673bcd21c0
Update awesome-hacks.md 2022-07-16 18:51:28 +05:30