aboutsummaryrefslogtreecommitdiff
path: root/.config/yazi/plugins/smart-enter.yazi
diff options
context:
space:
mode:
authorkrolxon <krolyxon@tutanota.com>2025-09-14 17:46:37 +0530
committerkrolxon <krolyxon@tutanota.com>2025-09-14 17:46:37 +0530
commit92e2da70f0d8231fedced88074ef707b359e8222 (patch)
tree4959f6404a37dab29e8c237e995872ccf374cc13 /.config/yazi/plugins/smart-enter.yazi
parenta8246b3bdefb6bf96b6cac7c7c4ef2a3b9f2383f (diff)
remove yazi, use lf
Diffstat (limited to '.config/yazi/plugins/smart-enter.yazi')
-rw-r--r--.config/yazi/plugins/smart-enter.yazi/LICENSE21
-rw-r--r--.config/yazi/plugins/smart-enter.yazi/README.md40
-rw-r--r--.config/yazi/plugins/smart-enter.yazi/main.lua11
3 files changed, 0 insertions, 72 deletions
diff --git a/.config/yazi/plugins/smart-enter.yazi/LICENSE b/.config/yazi/plugins/smart-enter.yazi/LICENSE
deleted file mode 100644
index fb5b1d6..0000000
--- a/.config/yazi/plugins/smart-enter.yazi/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-MIT License
-
-Copyright (c) 2023 yazi-rs
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
diff --git a/.config/yazi/plugins/smart-enter.yazi/README.md b/.config/yazi/plugins/smart-enter.yazi/README.md
deleted file mode 100644
index 742f2e1..0000000
--- a/.config/yazi/plugins/smart-enter.yazi/README.md
+++ /dev/null
@@ -1,40 +0,0 @@
-# smart-enter.yazi
-
-[`Open`][open] files or [`enter`][enter] directories all in one key!
-
-## Installation
-
-```sh
-ya pkg add yazi-rs/plugins:smart-enter
-```
-
-## Usage
-
-Bind your <kbd>l</kbd> key to the plugin, in your `~/.config/yazi/keymap.toml`:
-
-```toml
-[[mgr.prepend_keymap]]
-on = "l"
-run = "plugin smart-enter"
-desc = "Enter the child directory, or open the file"
-```
-
-## Advanced
-
-By default, `--hovered` is passed to the [`open`][open] command, make the behavior consistent with [`enter`][enter] avoiding accidental triggers,
-which means both will only target the currently hovered file.
-
-If you still want `open` to target multiple selected files, add this to your `~/.config/yazi/init.lua`:
-
-```lua
-require("smart-enter"):setup {
- open_multi = true,
-}
-```
-
-## License
-
-This plugin is MIT-licensed. For more information check the [LICENSE](LICENSE) file.
-
-[open]: https://yazi-rs.github.io/docs/configuration/keymap/#mgr.open
-[enter]: https://yazi-rs.github.io/docs/configuration/keymap/#mgr.enter
diff --git a/.config/yazi/plugins/smart-enter.yazi/main.lua b/.config/yazi/plugins/smart-enter.yazi/main.lua
deleted file mode 100644
index e9e2ec6..0000000
--- a/.config/yazi/plugins/smart-enter.yazi/main.lua
+++ /dev/null
@@ -1,11 +0,0 @@
---- @since 25.5.31
---- @sync entry
-
-local function setup(self, opts) self.open_multi = opts.open_multi end
-
-local function entry(self)
- local h = cx.active.current.hovered
- ya.emit(h and h.cha.is_dir and "enter" or "open", { hovered = not self.open_multi })
-end
-
-return { entry = entry, setup = setup }