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

shortcut to copy path to currently selected file #196

Closed
ztatlock opened this issue May 22, 2024 · 5 comments
Closed

shortcut to copy path to currently selected file #196

ztatlock opened this issue May 22, 2024 · 5 comments
Labels
enhancement New feature or request

Comments

@ztatlock
Copy link

The part you want to Enhancement
It would be nice if there was a shortcut to copy the path to currently selected file. Right now it seems you can only copy the file contents to the clipboard, but I would like to copy the file's path to the file to clipboard sometimes.

Why it is necessary to enhancement
This would help when I want to browse to find the file I'm looking for and then get its path for use in some script or other task.

Additional context
Sorry if this feature already exists and I just didn't see it. I did look through the tutorial and docs and did not see it, but perhaps I just missed it. Many thanks for the great tool!

@ztatlock ztatlock added the enhancement New feature or request label May 22, 2024
@yorukot
Copy link
Owner

yorukot commented Jun 27, 2024

Hey, sorry for taking the time to reply to you :(
Are you referring to copying the path of the file where the current cursor is located?

@reneas
Copy link

reneas commented Sep 17, 2024

Just installed superfile and I think its great apart from this one little thing!
As @ztatlock said sometimes you are just looking for the path of a file so you can use some command on it. So it would be super practical to be able to copy the absolute file path to a given file.
An idea on how this could be used is to use shift+ctrl+c to copy that file path.

would be suuuper glad if that feature came to the project!

@yorukot yorukot moved this to Feature in superfile todo list Sep 18, 2024
yorukot added a commit that referenced this issue Sep 18, 2024
@yorukot
Copy link
Owner

yorukot commented Sep 18, 2024

@ztatlock @reneas
I amlost forgot this feature,This really helpful for me too and it's easy to implement, so I updated it :)
The hotkey is ctrl+p, I do want to use ctrl+shift+p, but bubbletea doesn't seem to support this.

@yorukot yorukot closed this as completed Sep 18, 2024
@github-project-automation github-project-automation bot moved this from Feature to Done in superfile todo list Sep 18, 2024
@reneas
Copy link

reneas commented Sep 18, 2024

so will there be a new release with this soon or should i build it myself for now?

@yorukot
Copy link
Owner

yorukot commented Sep 18, 2024

You should build it yourself for now. The new release should take some time.

tmeijn pushed a commit to tmeijn/dotfiles that referenced this issue Oct 16, 2024
This MR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [yorukot/superfile](https://github.com/yorukot/superfile) | patch | `v1.1.4` -> `v1.1.5` |

MR created with the help of [el-capitano/tools/renovate-bot](https://gitlab.com/el-capitano/tools/renovate-bot).

**Proposed changes to behavior should be submitted there as MRs.**

---

### Release Notes

<details>
<summary>yorukot/superfile (yorukot/superfile)</summary>

### [`v1.1.5`](https://github.com/yorukot/superfile/blob/HEAD/changelog.md#v115)

[Compare Source](yorukot/superfile@v1.1.4...v1.1.5)

> 2024-10-03

##### Update

-   Stop automatically updating config file. Add fix-hotkeys flag, feedback for missing hotkeys [`#333`](yorukot/superfile#333)
-   Update installation.md: Add x-cmd method to install superfile [`#371`](yorukot/superfile#333)
-   Added option to change default editor [`#396`](yorukot/superfile#396)
-   Support Shell access but cant read history [`#127`](yorukot/superfile#127)
-   shortcut to copy path to currently selected file [`#196`](yorukot/superfile#196)

##### Bug fix

-   fixed typo in hotkeys.toml [`#341`](yorukot/superfile#341)
-   Fixes issue [#&#8203;360](yorukot/superfile#360) + Typo fixes by [`#379`](yorukot/superfile#379)
-   fixed spelling mistake : varibale to variable [`#394`](yorukot/superfile#394)
-   fixed exiftool session left open after use [`#400`](yorukot/superfile#400)
-   Show unsupported format in preview panel over a torrent file [`#408`](yorukot/superfile#408)
-   Vim bindings in docs cause error on nixos [`#325`](yorukot/superfile#325)
-   fix spf help flag error [`#368`](yorukot/superfile#368)
-   You cannot access the disks section in the side panel when only have one disk [`#409`](yorukot/superfile#409)
-   "Unsupported formats" message has an extra space for .pdf files [`#392`](yorukot/superfile#392)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this MR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box

---

This MR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40NDAuNyIsInVwZGF0ZWRJblZlciI6IjM3LjQ0MC43IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJSZW5vdmF0ZSBCb3QiXX0=-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

No branches or pull requests

3 participants