fork-dev / Tracker

Bug and issue tracker for Fork for Mac
511 stars 12 forks source link

Skip directories when browsing file trees via keyboard #569

Open ravinggenius opened 5 years ago

ravinggenius commented 5 years ago

I love the tree view for listing files, but the directories get in the way when browsing files with [up]/[down] keyboard keys. This is especially frustrating when browsing files with the side-by-side diff window open, as I cannot see that a directory is selected instead of a file. Since directories have no diff, can they simply be skipped?

As I write this I realized that skipping directories would make it impossible to collapse/expand them with the keyboard. Personally I would still prefer to just skip directories, but if collapse/expand via keyboard is important, would you consider a setting or keyboard modifier to allow skipping directories?

DanPristupov commented 5 years ago

Stage/unstage/discard operation for directories is very important in daily routine. It is very convenient and also fast.

I think we should not introduce a feature which makes directory operations less accessible.

ravinggenius commented 5 years ago

Understood. What about a modifier like ⌘[up]/⌘[down]? I don't think those combinations are currently assigned.

DanPristupov commented 5 years ago

In the past I thought about implementing a navigation like you proposed, but I couldn't find a way to do it nicely.

Cmd+Up/Cmd+Down are used in Finder as Go To Parent/Run. I think using them in other way will be confusing.

serhiipalash commented 5 years ago

@ravinggenius why can't you toggle on "View as List"? It hides all directories and Up/Down always switches between files.

Screen Shot 2019-03-29 at 8 12 40 PM
ravinggenius commented 5 years ago

@serhiipalash I've considered that, but the list view truncates the file names, so I prefer the tree view.

serhiipalash commented 5 years ago

but the list view truncates the file names

Hm, then what you need to ask is a third type of View for Unstaged Files, maybe something like View as Files.