Commit Graph

899 Commits

Author SHA1 Message Date
Pierre
8c8732324e
doc(hacks): fix author link (#727) 2024-09-03 22:57:53 +05:30
Pierre
9d802fa17c
doc: add toggle exe hack (#726) 2024-09-03 11:25:44 +05:30
Arijit Basu
68fb6fa1a2 Fix docs
Fixes: https://github.com/sayanarijit/xplr/issues/717
2024-06-16 16:07:57 +05:30
Arijit Basu
a82ea6a3e5
Fix CI 2024-06-16 15:48:19 +05:30
Arijit Basu
e13dd21728 Upgrade
Fixes: https://github.com/sayanarijit/xplr/issues/718
2024-06-16 15:41:00 +05:30
Arijit Basu
182a201b0d
Limit scroll padding 2024-05-10 07:33:19 +05:30
Arijit Basu
e0b0466e42
v0.21.8 (#716)
- Added vim-like scrolling as the default scrolling method. Set
`xplr.config.general.paginated_scrolling = false` to disable ~ by
@ElSamhaa & @sayanarijit.
- Added `xplr.config.general.scroll_padding` config option to set the
padding in vim-like scrolling ~ by @ElSamhaa & @sayanarijit.
- Fixed some color rendering issues ~ by @har7an.
- Added feature flag so that xplr can be build with system Lua ~ by
@nekopsykose.
- Fixed `ScrollUpHalf` behavior.
- `xplr.util.lscolor()` won't return nil anymore.
- Arguments passed to the custom dynamic layout Lua function will
include `scrolltop` field.
- Fixed node_type resolution for directories with `.` in their name ~ by
@abhinavnatarajan.
- Dependency updates.
2024-05-05 23:41:59 +05:30
Arijit Basu
805e1594ed
Fix vim scrolling 2024-05-05 23:32:27 +05:30
Arijit Basu
41648ced34 Linting fixes 2024-05-05 20:02:21 +05:30
Arijit Basu
89d7bccce8 Update docs 2024-05-05 20:02:21 +05:30
Arijit Basu
e15c1e8a8c
Lock ratatui 2024-05-03 11:09:09 +05:30
Arijit Basu
8afdf9e478
Fix node type resolution (#714)
Fixes #712 and #713.
2024-05-03 08:07:59 +05:30
Abhinav Natarajan
a48dae008c Fix node type resolution
Fix node_type for directory with extension
2024-05-03 03:28:34 +01:00
Arijit Basu
ad8afa9d38 Update deps 2024-05-01 17:08:02 +05:30
Arijit Basu
c2a11059c8
Add yazi an alternative 2024-05-01 16:59:13 +05:30
Arijit Basu
6d7ccce282 Pass scrolltop in custom Lua function 2024-05-01 15:38:34 +05:30
Arijit Basu
90df0a2b5a vimlike_scrolling -> paginated_scrolling
Inspired by @ElSamhaa 's PR https://github.com/sayanarijit/xplr/pull/704
2024-05-01 14:42:39 +05:30
Arijit Basu
ce52bcdf94 Revert vimlike scrolling
Use stateful ui widget.
2024-05-01 14:42:39 +05:30
Arijit Basu
6fb0781fe4 xplr.util.lscolor shouldn't return nil
Closes: https://github.com/sayanarijit/xplr/issues/705

Also update xplr version.
2024-05-01 11:24:21 +05:30
Arijit Basu
c1bb251fef
Adds Vim-Like Scrolling to XPLR (#704)
- Added through a setting `vimlike_scrolling` which is turned off by
default
- A hard-coded _(for now)_ cushion of `5` lines that allows for
previewing the next lines while scrolling
- A separate struct `ScrollState` with getters and setters for the
`current_focus` field to disallow setting the field without updating the
`last_focus` field
2024-04-10 13:42:25 +05:30
Arijit Basu
976530ba70
Gen docs 2024-04-10 13:02:49 +05:30
Arijit Basu
96da7e1da8
Fix linting 2024-04-10 13:02:05 +05:30
Arijit Basu
96ffe8680b
Fix ScrollUpHalf 2024-04-10 12:38:54 +05:30
Ahmed ElSamhaa
1600ad9a9c Makes the preview cushion dynamic now, and sets an initial value 5 for it 2024-04-08 22:19:34 +03:00
Ahmed ElSamhaa
2a3d056bf1 Clarifies some comments 2024-04-08 20:04:51 +03:00
Ahmed ElSamhaa
91276f6871 Removes an unnecessary condition 2024-04-08 19:44:18 +03:00
Ahmed ElSamhaa
00bd54abe9 Removes unnecessary mut from the calc_skipped_rows fn 2024-04-08 19:36:17 +03:00
Ahmed ElSamhaa
95621af9eb Increases the preview_cushion to 5 like in vim 2024-04-08 03:16:43 +03:00
Ahmed ElSamhaa
5240b3904b Rolls back changes to the open terminal file 2024-04-08 02:05:06 +03:00
Ahmed ElSamhaa
a6fb695ff9 Refactors the calc_skipped_rows function to make it even more readable 2024-04-08 01:59:54 +03:00
Ahmed ElSamhaa
fd40de26e7 Adds tests for the ScrollState calc_skipped_rows fn 2024-04-08 00:55:52 +03:00
Ahmed ElSamhaa
87805509c5 Refactors the calc_skipped_rows function to make it more readable 2024-04-08 00:34:57 +03:00
Ahmed ElSamhaa
4aa367ca7c Makes the current_focus field private to limit usage to its setters and getters 2024-04-08 00:26:33 +03:00
Ahmed ElSamhaa
01606e0e60 Adds corresponding config setting for vimlike_scrolling 2024-04-08 00:17:09 +03:00
Ahmed ElSamhaa
e834242f5d Adds vim-like scrolling 2024-04-08 00:17:09 +03:00
alice
7c6dffc2c6
cargo: allow building with system lua (#703)
useful for distros
2024-04-06 12:25:12 +05:30
har7an
d5217f6677
cargo: Revert version update on ansi-to-tui (#702)
which causes custom styling to be lost on the currently selected line.
2024-03-26 11:44:32 +05:30
Arijit Basu
0285f0824c
Disable snap build 2024-03-18 16:15:31 +05:30
Arijit Basu
a6b19425ae
Release v0.21.6 (#701)
- Snap build
- xplr.util.debug()
- `c` and `m` key bindings for quick copy and move.
- ScrollUpHalf fix
- Dependency updates
2024-03-18 15:55:38 +05:30
Arijit Basu
9db8b2cc19
Upgrade dependencies (#700) 2024-03-18 15:44:19 +05:30
mikoloism
68500f3a8e
[Feat] support snapcraft build package to releases (#697)
* build(snap): support snapcraft package

- add `snap/snapcraft.yaml` file

NOTE: under `devmode` until fit to release

* ci(gh-action): support `snapcraft` build and publish to `gh-release` page
2024-03-10 21:12:03 +05:30
Arijit Basu
ded2e108bf
Add xplr.util.debug
Also update version
2024-02-10 14:43:10 +05:30
Arijit Basu
6e8f3da971
Quick copy and quick move (#692)
* Quick copy and quick move

- Press `c` to quickly copy the focused or selected path
- Press `m` to quickly move the focused or selected path
2024-02-02 12:47:26 +05:30
Arijit Basu
d76a70fed4
Fix ScrollUpHalf 2024-01-29 18:56:35 +05:30
Arijit Basu
16673963aa
Minor fix 2024-01-29 18:56:35 +05:30
Arijit Basu
b0ef9a5190
Remove unnecessary config example for now 2024-01-29 18:56:05 +05:30
Arijit Basu
b70337708c
Minor fix 2024-01-29 18:54:52 +05:30
Arijit Basu
9127d15494
Use tree-view as example 2024-01-29 18:53:50 +05:30
Arijit Basu
66d9f7e586
Minor doc fix 2024-01-29 18:47:30 +05:30
Arijit Basu
eab47a9044
Fix nixpkgs link 2024-01-29 18:38:20 +05:30