Commit Graph

278 Commits

Author SHA1 Message Date
Arijit Basu
555bc02e10
Update lua-function-calls.md 2022-11-12 18:19:16 +05:30
Arijit Basu
aea17b415b
Update writing-plugins.md 2022-11-07 13:06:05 +05:30
Arijit Basu
15e7123aba
Update awesome-hacks.md 2022-11-04 23:50:43 +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
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
289556f452
Add builtin vroot mode
Also fix ResetVroot
2022-10-27 21:39:48 +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
e51818dfc1
Fix cargo release 2022-10-26 04:30:56 +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
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
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
a4f98f0b63
Add tri-pane.xplr 2022-10-13 23:18:00 +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
5dcaca3816 Document new input operation 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
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
Arijit Basu
a9b1527e55
Point type-to-nav to th eupdated plugin for now 2022-07-15 18:00:58 +05:30
Junker
7f1f33b422 add 'nuke.xplr' plugin to awesome-plugins 2022-07-07 22:30:04 +05:30
Arijit Basu
220d253be4
Update index.html 2022-06-24 07:58:33 +05:30
Arijit Basu
bf354352d5 Upgrade version 2022-06-06 21:09:26 +05:30
Arijit Basu
bea0f277bc Add global key bindings that can be overwritten.
- Use `xplr.config.general.global_key_bindings` to define a set of
  key bindings that are available by default in every mode. e.g `esc`
  and `ctrl-c`.
- Remove boilerplate config from `init.lua`.
- Update docs.
2022-06-06 19:43:58 +05:30
Arijit Basu
07d0fe2dee
Update configure-key-bindings.md 2022-06-05 15:26:41 +05:30
Arijit Basu
563e2d1475 Update docs 2022-06-03 22:09:14 +05:30
Arijit Basu
5370cc2e8c Go to path and native auto completion on tab
- BREAKING: Rename mode `create directory` and `create file` to
  `create_directory` and `create_file`.
- Add key binding `gp` to go to a given path from input.
- Add function `fn.builtin.try_complete_path` to auto complete the path
  in input buffer.
- Use `tab` to auto complete path in `rename`, `create_file`,
  `create_directory` and `go_to_path` modes.
- Show different prompts in different modes.

And some cleanup.
2022-06-03 22:09:14 +05:30