Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add hovered as $0 for shell and opener #738

Merged
merged 7 commits into from
Feb 28, 2024
Merged

Conversation

rrveex
Copy link
Contributor

@rrveex rrveex commented Feb 27, 2024

Closes #716

New function hovered_and_selected.

@sxyazi sxyazi changed the title Add hovered as $0 for shell feat: add hovered as $0 for shell and opener Feb 28, 2024
@sxyazi
Copy link
Owner

sxyazi commented Feb 28, 2024

Hi, I've also added support for $0 for the opener, I think it should be fine now, would you like to give it a review?

@rrveex
Copy link
Contributor Author

rrveex commented Feb 28, 2024

Hi, I've also added support for $0 for the opener, I think it should be fine now, would you like to give it a review?

Yep, I guess that's how it's supposed to look like. Thanks for not throwing right away my very first pseudo-rust-gibberish :)

@sxyazi
Copy link
Owner

sxyazi commented Feb 28, 2024

Thanks for the review, let's merge it now!

@sxyazi sxyazi merged commit 2efda75 into sxyazi:main Feb 28, 2024
5 checks passed
@rrveex rrveex deleted the hovered0 branch February 28, 2024 20:50
asim215 pushed a commit to asim215/yazi that referenced this pull request Mar 5, 2024
asim215 added a commit to asim215/yazi that referenced this pull request Mar 5, 2024
* ci: add cachix workflow (sxyazi#740)

* feat: add hovered as `$0` for shell and opener (sxyazi#738)

* feat: flavor (sxyazi#753)

* feat: add a new `[notify]` section to the `theme.toml` to configure the `notify` component's style (sxyazi#749)

* feat: switch to inline images protocol for VSCode, Tabby, and Hyper

* feat: add `prepend_rules` and `append_rules` for `[open]` in `yazi.toml` (sxyazi#754)

* feat: support `YAZI_FILE_ONE` environment variable for `file(1)` path (sxyazi#752)

* feat: allow both '/' and '\' in folder creation (sxyazi#751)

* perf: apply `add_many()`/`remove_many()` to the visual mode items for selection conflict detecting (sxyazi#758)

* feat: support `%0` as the hovered file for Windows (sxyazi#761)

* feat: `ya.input()` plugin API (sxyazi#762)

* fix: remove redundant check to allow operations on the `shell` command with an empty file list

* feat: add musl linux build targets (sxyazi#759)

* fix: nested conflict detection exception when performing cross-level searches (sxyazi#769)

* refactor: add new `run` property (sxyazi#773)

* feat: add `Ctrl-[` as an escape key (sxyazi#763)

* feat: add `parse` method to `Line` element

* feat: `ya.notify()` plugin API (sxyazi#780)

---------

Co-authored-by: musjj <[email protected]>
Co-authored-by: rrveex <[email protected]>
Co-authored-by: sxyazi <[email protected]>
Co-authored-by: little camel <[email protected]>
Co-authored-by: Filipe Paniguel <[email protected]>
Co-authored-by: Nguyễn Đức Toàn <[email protected]>
Co-authored-by: Konrad Baran <[email protected]>
Co-authored-by: hankertrix <[email protected]>
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add $0 for the currently selected file to the shell command
2 participants