close
The Wayback Machine - https://web.archive.org/web/20220224231259/https://github.com/zellij-org/zellij/issues/585
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

Feature: add copying, deleting, and new-file creation capabilities to Strider #585

Open
imsnif opened this issue Jun 21, 2021 · 3 comments
Open

Comments

@imsnif
Copy link
Member

@imsnif imsnif commented Jun 21, 2021

Right now the Strider file explorer (start with zellij --layout strider) can explore files. Would be great if it could also copy, delete and create them.

@jaeheonji
Copy link
Member

@jaeheonji jaeheonji commented Nov 1, 2021

strider is pretty fascinating plugin. If those features are included, it can be more useful.
However, we will need some discussion before implementing these features.

From now on, these are my personal suggestions.

  1. create and delete will require UI to receive additional input from the user.

If strider is used together with status-bar, it would be good to implement the function in the red part of the figure below.
(For example, if user wants to create a new file, Tip and Input UI are toggled.)

스크린샷 2021-11-02 오전 12 41 24

However, since status-bar is not a required plugin, if the user is not using plugin, it is likely that a new rendering of a line at the bottom is necessary (maybe..?)

스크린샷 2021-11-02 오전 12 50 17

  1. As the number of features increases, users need to know which features are available.

For example, I'm using the nerdtree plugin while using VIM. nerdtree shows what commands are available when I press a ? key as shown in the picture below.

before:
스크린샷 2021-11-02 오전 12 57 18

after:
스크린샷 2021-11-02 오전 12 57 28

I'd love to hear from @imsnif and everyone on my personal suggestions :)

@Epos95
Copy link

@Epos95 Epos95 commented Jan 4, 2022

Hey!

I would gladly work on this.

My proposed solutions are to:

  1. Let the strider plugin handle the UI for file creation/deletion. This could handle input by letting the user write the filename straight into the fileviewer (this pattern could be extended to include moving files aswell) and handle file deletion by marking the file as red in the file viewer and prompting for y/n somewhere in the strider pane. This would also keep the plugins separated and solve the issue of what to do when there is no status-bar to write too.
  2. Rewamp keybindings to be easily printable and then letting ? toggle between a view of the printed keymaps and the standard file view as in NERDTree. A "help" menu seems like a great idea!

For now I am not sure if there is infrastructure in place for communication between plugins which would make it difficult to show prompts from strider in status-bar, so on @imsnif's recomendation I will implement the first proposed solution if that sounds alright. :D

@imsnif
Copy link
Member Author

@imsnif imsnif commented Jan 4, 2022

This all sounds great @Epos95! Looking forward to the implementation.

For moving files: ranger iirc has some sort of "copy/paste" mechanism. Something like: mark a file (it changes color) go to a different location and paste it. Can do something like this both for moving and copying. Whatever you feel like though, just a suggestion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants