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

Panels #230

Closed
Canop opened this issue May 17, 2020 · 1 comment
Closed

Panels #230

Canop opened this issue May 17, 2020 · 1 comment

Comments

@Canop
Copy link
Owner

Canop commented May 17, 2020

This issue is a presentation, a discussion board, a place to speak about progress, problems or ideas, or whatever is needed regarding the new features around the new multi-panels capabilities of broot.

Having several panels is mostly like having several broot side to side. One of the panels is focused, which may be rendered more visible with a specific skin (all skin entries can have a "unfocused" part).

Selecting a "destination" using a new panel

This is the first workflow I focused on. Here's how it can be done now (using master, not the released broot):

  • Start with selecting a file and typing the verb of your choice:
    image

  • hit ctrl-p. This opens a new panel which becomes the focused panel:
    image

  • navigate to the desired destination using standard broot features:
    image

  • hit ctrl-p again, which closes the panel and updates the input in the first panel:
    image

You may now hit enter to execute the command, maybe after having completed the path.

This workflow is based on the :start_end_panel verb which can be bound to another key if desired.

Just creating a new panel

If no verb is edited in the input, ctrl-p will just create a new panel with no purpose (ie it won't fill any argument on hitting ctrl-p again).
And any verb can open a new panel, by just adding a bang before or after the name of the verb.
For example, while :focus ~ opens your home in the current panel, :!focus ~ opens your home in a new panel.
But the best way to create panels is to use ctrl-left or ctrl-right. Those keys, mapped to :panel_left and :panel_right, are used both to navigate or create panels.

Working with a pair of panels

Some people may remember Norton Commander or its heirs. Sometimes it's convenient to see two places and do some operations involving those places, like moving files.

The new :copy_to_panel and :move_to_panel, with respective shortcuts :cpp and :mvp, can be used to copy or move the selection to the currently selected place in the other panel.

image

If you want the Norton Commander shortcuts you may bind :cpp to F5 and :mvp to F6.

@Canop Canop pinned this issue May 26, 2020
@Canop Canop unpinned this issue May 28, 2020
@Canop
Copy link
Owner Author

Canop commented May 29, 2020

As it's now released, I close this issue.

@Canop Canop closed this as completed May 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant