Arijit Basu
1783834a2e
Fix ctrl-l breaking UI
...
Also improve the filter mode key bindings
Fixes: https://github.com/sayanarijit/xplr/issues/88
2021-04-19 17:23:42 +05:30
Arijit Basu
ca13ebb193
Added inode size
...
Also supports sorting by inode size.
Closes: https://github.com/sayanarijit/xplr/issues/84
2021-04-19 14:48:45 +05:30
Arijit Basu
b53f0c21bb
Improve read-only mode
...
Do not include non-read-only actions in the in read-only mode. i.e. do
not display non-read-only actions in help menu.
Ref: https://github.com/sayanarijit/xplr/issues/22
2021-04-19 14:33:42 +05:30
Arijit Basu
21f87d6a08
Add read-only mode
...
Ref: https://github.com/sayanarijit/xplr/issues/22
2021-04-19 10:27:27 +05:30
Arijit Basu
4d21a89050
Use ctrl-r to refresh, ctrl-l to clear selection
2021-04-19 00:58:04 +05:30
Arijit Basu
e70fa57228
Fix selection
...
Fixes: https://github.com/sayanarijit/xplr/issues/81
2021-04-19 00:58:04 +05:30
Arijit Basu
9fce3b1d14
Fix space input
2021-04-19 00:45:41 +05:30
Arijit Basu
1bb2622f24
Improve key inputs
...
Add support proper implementations of -
- backspace
- ctrl-w
- ctrl-u
Also, improved sort and filter behavior.
Fixes: https://github.com/sayanarijit/xplr/issues/77
2021-04-19 00:00:43 +05:30
Maxim Baz
468cf7f3df
Allow empty icons
2021-04-18 20:24:13 +05:30
Arijit Basu
f582f49ad8
Make search and filter case insensitive
2021-04-18 16:57:33 +05:30
Arijit Basu
1546ba0a75
Add filter key binding
2021-04-18 16:57:33 +05:30
Arijit Basu
a8896740c8
Add sorting support
...
Also improve filtering.
Closes: https://github.com/sayanarijit/xplr/issues/58
2021-04-18 16:14:17 +05:30
Arijit Basu
1dc25c4998
Remove default.nix
2021-04-15 16:41:23 +05:30
Arijit Basu
bbd5c1ba8b
Map V to ctrl-a
2021-04-15 15:58:39 +05:30
Arijit Basu
3ab9bcb4c9
Fix UI style priority
...
Fixes: https://github.com/sayanarijit/xplr/issues/68
2021-04-15 15:55:06 +05:30
Arijit Basu
54bad4aa09
Add mode selection commands
...
- SelectAll
- SelectPath
- UnSelectAll
- UnSelectPath
- ToggleSelectAll
- ToggleSelectionByPath
2021-04-15 14:36:52 +05:30
Arijit Basu
1dba3d5e8e
Fix overwriting of default config.
...
This fixes the overwriting of default configuration.
Also, add tests to validate the new logic.
Fixes: https://github.com/sayanarijit/xplr/issues/68
2021-04-15 13:55:42 +05:30
Arijit Basu
0c82a645d9
Add history pipe
2021-04-14 21:16:16 +05:30
Arijit Basu
d0342260fe
Add support for NO_COLOR
...
Also, add `general.logs` to the config.
Ref: https://no-color.org/
2021-04-14 08:38:00 +05:30
Arijit Basu
af1cda5762
Better symlink support
...
Closes: https://github.com/sayanarijit/xplr/issues/37
2021-04-13 08:48:50 +05:30
Arijit Basu
0d4cd29a08
Fix panic on permission denied
...
Issue:
$PWD watch service panics when visiting restricted directories.
Fix:
Log error instead of panic.
2021-04-13 08:01:20 +05:30
Arijit Basu
ea42b1969a
Improve scrolling behaviour
...
Closes: https://github.com/sayanarijit/xplr/issues/54
2021-04-12 21:51:59 +05:30
Maxim Baz
d63d612339
add desktop file
2021-04-12 19:39:01 +05:30
Arijit Basu
c640edc4d9
Improve number mode clear behaviour
2021-04-12 12:16:59 +05:30
Arijit Basu
49ffd8e1f1
Fix exit error codes
...
Also remove cucumber-rust (will try https://github.com/rust-rspec/rspec )
Fixes: https://github.com/sayanarijit/xplr/issues/33
2021-04-12 11:13:31 +05:30
Arijit Basu
55e1a6a0fa
Add basic history navigation
...
Use `ctrl-i` (tab) and `ctrl-o` to navigate history.
Closes: https://github.com/sayanarijit/xplr/issues/49
2021-04-12 11:03:57 +05:30
Arijit Basu
f247acf626
Fix remap behaviour and help menu
...
Remapping a key should overwrite default. Also, remapped keys shouldn't
be redundantly visible in help menu.
Also, display log time.
2021-04-11 22:22:36 +05:30
Arijit Basu
055c1083d6
Support easier key remaps
...
Also,
- Add key binding `~` to go to homedir.
- Add customizable cursor and prompts.
- Improve the help menus.
2021-04-11 21:15:01 +05:30
Arijit Basu
d34dc77ea5
Initial BDD testing setup
2021-04-11 21:15:01 +05:30
Arijit Basu
080e1686f3
Improve version compatibility
...
From this version, xplr won't annoy the users to visit the upgrade guide
when there is no need.
Also, users will only get upgrade related notification when it is
there is one.
2021-04-11 21:15:01 +05:30
Arijit Basu
3598be0f19
Improve config defaults
...
- Rename `custom` field for node metadata to `meta`.
- Move `icon` to `meta.icon`.
- Rename `normal_ui` to `default_ui`.
- Rename `filetypes` to `node_types`.
- Split `modes` into `modes.builtin` and `modes.custom`.
- Add the missing `create file` mode.
- Rename `focused_ui` to `focus_ui`.
- Make `general.table.header` non-nullable.
- Add support for incremental configuration updates.
Ref: https://github.com/sayanarijit/xplr/issues/45
2021-04-11 21:15:01 +05:30
Arijit Basu
6aa3df301e
Separate config.yml file from rust files
...
Also be less aggressive for version compatibility.
Use the following logic:
Knowing that we use `{major}.{minor}.{patch}` versioning,
- Major version mismatch are incompatible. Fail with error, suggesting to
visit the Upgrade Guide.
- Minor version updates and patch fixes are compatible. Suggest user to
update the config file version manually. Or visit the Upgrade Guide.
- However, if the config file has greater value for minor version
than the app, also fail with error. Suggesting the user to visit Upgrade
Guide. Though in this case, the user will be downgrading.
Ref: https://github.com/sayanarijit/xplr/issues/45
2021-04-09 23:57:39 +05:30
Arijit Basu
233f6d44a5
Update version
2021-04-09 16:26:45 +05:30
Arijit Basu
2af1b4c70a
Fix exit screen
2021-04-09 15:50:09 +05:30
Arijit Basu
2596c0c4c3
Remove task priority
...
Since we are now blocking on task inputs, the priority is no longer
required.
2021-04-09 15:29:05 +05:30
Arijit Basu
5030749ab1
Use cp -vr
instead of cp -v
2021-04-09 14:32:53 +05:30
Arijit Basu
9f78a1fcff
Ability to call commands silently
...
Some commands doesn't require to capture stdout and stderr.
They can be called without needing to reset the screen.
Add `CallSilently` and `BashExecSilently` to execute those commands
faster.
Also, some optimization.
2021-04-09 14:28:32 +05:30
deadjakk
be2911e073
Fixed error preventing compilation
...
Removed comma.
Error was as follows:
error: no rules expected the token `,`
--> src/input.rs:373:29
|
373 | | Self::Num9,
| ^ no rules expected this token in macro call
error: aborting due to previous error
2021-04-09 12:07:19 +05:30
Arijit Basu
588a50af7e
Add support for custom metadata for table row UI
...
Example:
```yaml
filetypes:
directory:
custom:
foo: bar
...
```
Where `foo` and `bar` can be anything string.
It can be accessed with the `{{{custom.foo}}}` variable.
2021-04-09 11:57:24 +05:30
Arijit Basu
a68fec0c11
No need to clone selection
2021-04-09 10:56:39 +05:30
Arijit Basu
b50ce48264
Revert "Optimize the main thread"
...
This reverts commit 097c9dd8c5
.
Queued tasks might create unexpected issues. We need a test suit first.
2021-04-09 10:54:20 +05:30
Arijit Basu
097c9dd8c5
Optimize the main thread
2021-04-09 10:51:48 +05:30
Arijit Basu
b9e9601a71
Fix failed build and update version
2021-04-09 08:21:30 +05:30
Arijit Basu
b5986c59d6
Fix logs for being written in the pipe
...
Don't depend on `Refresh`, always write to the pipes.
2021-04-09 08:06:32 +05:30
Arijit Basu
2b0572228d
Draw once
...
Draw on the terminal only once i.e. when `Refresh`ing.
2021-04-09 07:18:47 +05:30
Arijit Basu
ededb49bd4
Fix the help menu
...
`esc` no longer exits from the `default` mode.
2021-04-09 07:00:56 +05:30
Maxim Baz
70a3794857
Fix symlink support
...
canonicalize() and metadata() both resolve symlinks, thus showing symlinks as regular files
2021-04-09 06:43:58 +05:30
Arijit Basu
c06a3cb51e
Update version
2021-04-09 04:19:26 +05:30
Arijit Basu
6d0ea06d7b
Add pwd watcher
...
Also optimize the main thread.
2021-04-09 04:19:44 +05:30
Arijit Basu
0a3cf7b5c1
Update version
2021-04-09 01:29:38 +05:30