Commit Graph

788 Commits

Author SHA1 Message Date
Arijit Basu
555bc02e10
Update lua-function-calls.md 2022-11-12 18:19:16 +05:30
Arijit Basu
bbb1026ff8
Add nix flake 2022-11-12 02:35:02 +05:30
Arijit Basu
aea17b415b
Update writing-plugins.md 2022-11-07 13:06:05 +05:30
Arijit Basu
7e70487511
Use default values for some fields 2022-11-07 11:40:23 +05:30
Arijit Basu
15e7123aba
Update awesome-hacks.md 2022-11-04 23:50:43 +05:30
Arijit Basu
133ba120af Update .github/workflows/cd.yml 2022-10-30 01:55:55 +05:30
Orhun Parmaksız
77164ff98a fix(cd): use external gzip for compressing the git source 2022-10-30 01:55:55 +05:30
Arijit Basu
ea8a1fcd46
Update xplr.util.md 2022-10-29 10:03:35 +05:30
Arijit Basu
70cb745c9f Implement and expose xplr.util
Closes: https://github.com/sayanarijit/xplr/issues/517
2022-10-29 02:46:31 +05:30
Arijit Basu
15979e4974 Release v0.20.0 2022-10-29 02:46:31 +05:30
Arijit Basu
49c4729047
Improve CLI errors 2022-10-28 17:16:34 +05:30
Arijit Basu
01060ed025
Add $XPLR_INITIAL_PWD and 'gi' key binding
This will allow enable workspace like features, without using vroot.
2022-10-28 11:23:12 +05:30
Arijit Basu
74318435e8
Update version 2022-10-27 23:22:11 +05:30
Arijit Basu
553f6b9bc6
Fix doc 2022-10-27 23:05:48 +05:30
Arijit Basu
71bd2e2776
Add more vroot options
- ToggleVroot
- UnsetVroot

Along with key bindings.
2022-10-27 23:00:10 +05:30
Arijit Basu
94154c56df
Consistent help text 2022-10-27 21:54:06 +05:30
Arijit Basu
5c4dec05ed
Don't restrict saving location outside vroot 2022-10-27 21:47:25 +05:30
Arijit Basu
289556f452
Add builtin vroot mode
Also fix ResetVroot
2022-10-27 21:39:48 +05:30
Arijit Basu
eba9de5a44
Improve vroot indicator 2022-10-27 18:28:49 +05:30
Arijit Basu
e3a5f3c044 Add messages SetVroot and ResetVroot 2022-10-27 17:05:32 +05:30
Arijit Basu
a62b72bf2a Add support for --vroot
--vroot helps isolating navigation of an xplr session inside a specific
directory. However, interaction still requires passing full paths
(`/tmp/vroot`). Shell scripts and Lua functions can still access files
outside the virtual root.

This PR also fixes unwanted dot (.) and extra slash (//) issues in paths.
2022-10-27 17:05:32 +05:30
Arijit Basu
00ffd077aa
Upgarde version 2022-10-27 12:00:30 +05:30
Arijit Basu
bafe15e25e
Add more hooks 2022-10-27 11:22:36 +05:30
Arijit Basu
fc798aad97 Update version 2022-10-27 00:55:12 +05:30
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