Commit Graph

494 Commits

Author SHA1 Message Date
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
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
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
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
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
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
c42c4dc69d
Fix doc 2022-07-17 12:03:03 +05:30
Arijit Basu
95f1f45375
Reduce the selection pane height 2022-06-17 17:10:21 +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
4c4d3843e9
Avoid using unnecessary prompts
Problem with long paths.
2022-06-05 08:58:19 +05:30
Arijit Basu
a2f246f61e
Improve the "duplicate as" prompt 2022-06-04 09:39:45 +05:30
Arijit Basu
27394dd177
Tab completion for "duplicate_as" mode 2022-06-03 22:16:09 +05:30
Arijit Basu
88416d862e
Minor improvement 2022-06-03 22:13:13 +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
Arijit Basu
e5576e2990 Fix typo 2022-06-03 22:09:14 +05:30
Arijit Basu
e04b0964ae Use 89 chars line length 2022-06-02 22:45:19 +05:30
Arijit Basu
21b8c3e807 Make clippy happy 2022-06-02 18:13:33 +05:30
Arijit Basu
744b68197d Some optimizations 2022-06-02 18:13:33 +05:30
Arijit Basu
02b631bf83 Strict NO_COLOR compliance and some cleanups 2022-06-02 18:13:33 +05:30
Arijit Basu
61d3b1635e Use NO_COLOR to disable OSC 7 2022-06-02 18:13:33 +05:30
Arijit Basu
d35a4c58cb Write OSC 7 escaped codes on a the tui backend 2022-06-02 18:13:33 +05:30
Arijit Basu
47f7d51e46 Cleanups 2022-06-02 18:13:33 +05:30
Arijit Basu
de856b7870 Implement Write 2022-06-02 18:13:33 +05:30
Arijit Basu
2f9992bf8b OSC 7 fixes
Co-authored-by: Wez Furlong <wez@wezfurlong.org>
2022-06-02 18:13:33 +05:30
Arijit Basu
3c8f6e1b08 Experiment with OSC 7
Ref: https://github.com/wez/wezterm/issues/2054
2022-06-02 18:13:33 +05:30
Arijit Basu
07b2374616
Make the table a little compact 2022-06-01 21:05:13 +05:30
Arijit Basu
e655c245c5 Optimize regex search further
No need to compile both regex and iregex.
2022-05-30 09:31:59 +05:30
Arijit Basu
f324e976da Compile regex only when required 2022-05-30 08:42:42 +05:30
Arijit Basu
95248ae6d1 Cleanup 2022-05-30 08:42:42 +05:30
Arijit Basu
e2cf313ee2 Optimize regex search
Compile regex once and reuse it.
2022-05-30 08:42:42 +05:30
Arijit Basu
cb2851875c
Fix mime_essence doc - again 2022-05-23 11:25:01 +05:30
Arijit Basu
dc8cb30eb3
Fix mime_essence docs 2022-05-23 11:22:54 +05:30
Arijit Basu
cf052d2691
Fix doc 2022-05-23 11:19:53 +05:30
Arijit Basu
6f626d1ba0
Clarify metadata API 2022-05-23 11:17:21 +05:30
Arijit Basu
3da8140bb1
Fix printing unicode 2022-05-21 09:43:43 +05:30
Arijit Basu
e006152066 Upgrade version 2022-05-21 03:15:50 +05:30
Arijit Basu
2179be473f Fix docs 2022-05-21 02:46:55 +05:30
Arijit Basu
cc5b996db9 Add remove last filter 2022-05-21 02:46:55 +05:30
Arijit Basu
d9465f1a57 Display in the table 2022-05-21 02:46:55 +05:30
Arijit Basu
8e1d16b751 Remove merge conflicts 2022-05-21 02:46:55 +05:30
Arijit Basu
37e660e0a6 Improve timestamp support 2022-05-21 02:46:55 +05:30
Shunsuke Mie
626a48cf88 Update init.lua to show a last modification column 2022-05-21 02:46:55 +05:30
Shunsuke Mie
57c29d47c5 Support a column shows time of modification 2022-05-21 02:46:55 +05:30
Arijit Basu
09002d0e65 Add support for null characters as separator
- Use `--read0 -` to read `\0` separated paths from stdin.
- Use `--write0` to write `\0` separated paths to stdout.
- Use `-0` or `--null` to combine `--read0` and `--write0`.
2022-05-21 00:28:29 +05:30
Arijit Basu
86f56cc051 Fix search navigation 2022-05-21 00:12:58 +05:30
Arijit Basu
5f598648a8 Make the prompt not null 2022-05-21 00:12:58 +05:30
Arijit Basu
d2390285fb Fix doc 2022-05-21 00:12:58 +05:30
Arijit Basu
1de737cefa Add regex support and dynamic input prompt
- Add new regex filters
  - `RelativePathDoesMatchRegex`
  - `RelativePathDoesNotMatchRegex`
  - `IRelativePathDoesMatchRegex`
  - `IRelativePathDoesNotMatchRegex`
  - `AbsolutePathDoesMatchRegex`
  - `AbsolutePathDoesNotMatchRegex`
  - `IAbsolutePathDoesMatchRegex`
  - `IAbsolutePathDoesNotMatchRegex`
- Search mode now defaults to regex
- Added new message `SetInputPrompt` to set the input prompt
  dynamically.
2022-05-21 00:12:58 +05:30
Arijit Basu
3cfed5aa6f
Improve docs 2022-05-16 17:24:32 +05:30
Arijit Basu
0d12762c1d
Upgrade tui-input to 0.4.0 2022-05-16 12:15:50 +05:30
Arijit Basu
a66d5e05d5
Upgrade to tui-input 0.3 2022-05-15 21:21:38 +05:30
Arijit Basu
2bd4346156 Improve CLI help menu 2022-05-04 23:41:21 +05:30
Arijit Basu
6d9d324a7d
Upgrade version 2022-05-04 10:30:45 +05:30
Arijit Basu
171c93dbb1 Fix ansi colors
Also upgrade deps and do some cleanup.
2022-05-04 09:43:14 +05:30
Arijit Basu
6c775d72dc
Bold directories 2022-04-16 12:20:14 +05:30
Arijit Basu
f6364b5403 Try a new UI 2022-04-15 21:57:01 +05:30
Arijit Basu
9673eba89c Upgrade version
- Upgrade rust to 1.58.1
- Upgrade rust edition to 2021
- Upgrade xplr packages
2022-04-14 13:41:05 +05:30
Arijit Basu
583f685627
Minor line gap 2022-04-09 17:06:37 +05:30
Arijit Basu
aca6127166
Minor fixes 2022-04-09 17:04:43 +05:30
Arijit Basu
0472bc3e66 Auto generate docs 2022-04-09 16:02:04 +05:30
Arijit Basu
dfb4854f01
Set cursor position based on prompt 2022-02-28 13:08:55 +05:30
Arijit Basu
bfd403c894 Upgrade version 2022-02-28 10:19:47 +05:30
Arijit Basu
3d81a49cec Auto generate messages docs
- Huge refactor.
- Run `python docs/script/generate.py` to generate `docs/en/src/messages.md`.
2022-02-27 23:21:51 +05:30
Arijit Basu
67eca1ecdf
More doc fixes 2022-02-27 17:16:34 +05:30
Arijit Basu
8385b92661
Minor doc improvements 2022-02-27 16:55:00 +05:30
Arijit Basu
ca211bb073 Auto generate some API docs from init.lua
This is the beginning of the xplr documentation revolution.

Closes: https://github.com/sayanarijit/xplr/issues/445
2022-02-27 15:47:53 +05:30
Arijit Basu
ecc59b1d9d Option to configure wrapping on move
Closes: https://github.com/sayanarijit/xplr/issues/441
2022-02-26 23:07:47 +05:30
Arijit Basu
618ade53ec Document init.lua
Ref: https://github.com/sayanarijit/xplr/issues/445
2022-02-26 22:41:18 +05:30
Arijit Basu
721ffd0216 Support custom border_type and border_style
This adds support for defining custom border types and border styles.

Example:

```
xplr.config.general.panel_ui.default.border_type = "Thick"
xplr.config.general.panel_ui.default.border_style.fg = "Black"
xplr.config.general.panel_ui.default.border_style.bg = "Gray"
```

Closes: https://github.com/sayanarijit/xplr/issues/448
2022-02-26 16:01:42 +05:30