Commit Graph

893 Commits (main)
 

Author SHA1 Message Date
Arijit Basu 053615b041 Fix linting errors 2 years ago
Arijit Basu 76224c42e1 Fix Nix cache push 2 years ago
Arijit Basu ca4f4f3f45
Fix nix build second attempt 2 years ago
Arijit Basu a0c19025dd
Fix nix build 2 years ago
Arijit Basu 69db7fa9e6
Push Binary Cache for Nix 2 years ago
Arijit Basu 555bc02e10
Update lua-function-calls.md 2 years ago
Arijit Basu bbb1026ff8
Add nix flake 2 years ago
Arijit Basu aea17b415b
Update writing-plugins.md 2 years ago
Arijit Basu 7e70487511
Use default values for some fields 2 years ago
Arijit Basu 15e7123aba
Update awesome-hacks.md 2 years ago
Arijit Basu 133ba120af Update .github/workflows/cd.yml 2 years ago
Orhun Parmaksız 77164ff98a fix(cd): use external gzip for compressing the git source 2 years ago
Arijit Basu ea8a1fcd46
Update xplr.util.md 2 years ago
Arijit Basu 70cb745c9f Implement and expose xplr.util
Closes: https://github.com/sayanarijit/xplr/issues/517
2 years ago
Arijit Basu 15979e4974 Release v0.20.0 2 years ago
Arijit Basu 49c4729047
Improve CLI errors 2 years ago
Arijit Basu 01060ed025
Add $XPLR_INITIAL_PWD and 'gi' key binding
This will allow enable workspace like features, without using vroot.
2 years ago
Arijit Basu 74318435e8
Update version 2 years ago
Arijit Basu 553f6b9bc6
Fix doc 2 years ago
Arijit Basu 71bd2e2776
Add more vroot options
- ToggleVroot
- UnsetVroot

Along with key bindings.
2 years ago
Arijit Basu 94154c56df
Consistent help text 2 years ago
Arijit Basu 5c4dec05ed
Don't restrict saving location outside vroot 2 years ago
Arijit Basu 289556f452
Add builtin vroot mode
Also fix ResetVroot
2 years ago
Arijit Basu eba9de5a44
Improve vroot indicator 2 years ago
Arijit Basu e3a5f3c044 Add messages SetVroot and ResetVroot 2 years ago
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.
2 years ago
Arijit Basu 00ffd077aa
Upgarde version 2 years ago
Arijit Basu bafe15e25e
Add more hooks 2 years ago
Arijit Basu fc798aad97 Update version 2 years ago
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!" },
  }
}
```
2 years ago
Arijit Basu 723dd6ec2c Even better error messages 2 years ago
Arijit Basu 4a34780eb4
Improve errors messages `-m` and `-M` 2 years ago
Arijit Basu b05e702536
Actually validate the passed message 2 years ago
Arijit Basu baa8759d68
Minor performance improvement 2 years ago
Arijit Basu 52c8e05a1e
Fix clippy error 2 years ago
Arijit Basu 65eee2dc90
Use serde_yaml::with::singleton_map_recursive 2 years ago
Arijit Basu 77852b435f
Error on missing *-msg-in arguments 2 years ago
Arijit Basu 060544a2b8
Minor fixes 2 years ago
Arijit Basu e51818dfc1
Fix cargo release 2 years ago
Arijit Basu f8b16a7ddd Rebase main 2 years ago
Arijit Basu 85c4253782 Upgrade version 2 years ago
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:?}")
```
2 years ago
Arijit Basu 7c730557f2 Shell escape SRC and TARGET for logging 2 years ago
Arijit Basu 93e9b2b2ae There's no end of arguments for -m 2 years ago
Arijit Basu 3fb174cdc0 Allow using -m outside of xplr shell for debugging
Also validate the message before passing.
2 years ago
Arijit Basu 111a648818 Shell escape file paths in logs 2 years ago
Arijit Basu 1e820030a0 Implement subcommand -m / --pipe-msg-in 2 years ago
Arijit Basu bffe1d43ec Escape newline in selection list 2 years ago
Arijit Basu fbe6b2be10 Improve parsing CLI arguments 2 years ago
Arijit Basu 88fe71779b Add best practices section 2 years ago