fadden / CiderPress2

Tool for working with Apple II and vintage Mac disk images and file archives.
https://ciderpress2.com/
Apache License 2.0
48 stars 7 forks source link

Improved keyboard support #25

Open sean-gugler opened 2 months ago

sean-gugler commented 2 months ago

Lots of common keyboard shortcuts are already supported, which is great! After using CiderPress II 1.0.2 extensively I find myself wishing for a few more:

fadden commented 2 months ago

I like most of these, but anything related to changing focus in WPF can get weird. Just trying to get the initial focus on the file list was causing it to go off into the weeds and disable all actions. It took a while to get it to work as well as it does.

The inter-control tab behavior is probably less of a minefield, but it can be tricky to make it do what you want.

Why F2? Update: I just tried hitting F2 in Windows Explorer with a file selected... and it went into "rename" mode. Mystery solved. :-) FWIW, the filename edit field is already selected and focused when the dialog is opened, and hitting Enter will accept the change and close the dialog.

fadden commented 2 months ago

In Extract dialog, press "Enter" to invoke the "Select Here" button

Perhaps it should work the same as double-click: if you do it on a directory it moves into the directory, if you do it on anything else it does Select Here. (The same dialog is also used to select a mix of files and folders for add/import.)

fadden commented 1 month ago

Some new shortcuts...

Main file list:

Edit attributes:

File+folder selection dialog:

fadden commented 1 month ago

Main file list:

This makes Ctrl+Shift+2 flip back and forth between two archives, and Ctrl+Shift+3 rotate through a set of 3. Higher-numbered shortcuts become increasingly less useful. They do work when no file is open, so it might be worth displaying the full set on that screen (instead of just the most recent two) to allow Ctrl+W Ctrl+Shift+[#] to be a fast way to switch around.

sean-gugler commented 5 days ago

This is awesome! A big help; many thanks.

Still on the wishlist: when focus is on main file list and a directory is selected, "Enter" does not behave as double-click. Instead it tries to open the first file entry found in the list, ignoring the selection, which feels a bit odd.

fadden commented 5 days ago

Yeah that feels weird. The "view files" command expects to get a list of stuff to view. When only one file is selected, it acts as if all files in the window are selected, so you can use the forward/backward buttons. You can't really view directories, so it throws those out. So asking to view a single directory entry gets you the first thing in the window.

The basic problem is that Enter is a shortcut for "view files", rather than being equivalent to double-click, which has special behavior when only one entry is selected.

fadden commented 3 days ago

Updated in v1.0.5-dev1. You should be able to navigate through the directory hierarchy in "single directory" view mode using the keyboard.