fman icon indicating copy to clipboard operation
fman copied to clipboard

".." entry in folders

Open mherrmann opened this issue 7 years ago • 30 comments

Pros:

  • Intuitive
  • Can be used with mouse
  • It's sometimes useful to be able to copy the path of the current directory to the clipboard. F11 on ".." would enable this. However, without "..", you can still go up (Backspace) and then press F11.
  • In Total Commander, when you Shift+F6 "..", you can directly enter the path of a directory to navigate to. I find this quite intuitive.

Cons:

  • Clutters up UI; Makes fman less "beautiful".
  • When you enter a folder right now, the first file/directory in that folder is automatically selected. If that happens to be the file/directory you want to open, you save a key stroke! If ".." were there, at the top of the list and thus automatically selected, you would always have to go down/type something at least once to interact with the directory contents
  • It's a little more difficult to implement
  • I would argue not having the ".." there has the benefit of educating the user. One user learned about the Backspace functionality because ".." isn't there. From now on, he knows how to use Backspace - and will be quicker in the process because it is just a single key to type.

Since there are so many pros and cons, it will be best to simply make this configurable so each user can set it up the way (s)he likes.

mherrmann avatar Mar 21 '17 13:03 mherrmann

The two dots .. refer to the parent directory. So F11 on it should not copy the path of the current directory. You would need . placeholder for it.

vovcacik avatar Jul 03 '17 18:07 vovcacik

Good point.

mherrmann avatar Jul 04 '17 04:07 mherrmann

I just tried fman for the first time, and I missed this. I'd suggest Alt+Up should also navigate to parent dir.

ar-jan avatar Feb 24 '18 12:02 ar-jan

Thank you for the feedback / suggestion @ar-jan. I've created a separate issue for Alt-Up.

mherrmann avatar Feb 26 '18 11:02 mherrmann

In my humble opinion Alt + Up is sufficient solution. If you ever decide to add '..', please make it optional. For me it would negatively affect usability.

zorzysty avatar Aug 08 '18 15:08 zorzysty

No worries, if I implement it, it will be optional.

mherrmann avatar Aug 08 '18 15:08 mherrmann

Good to hear :) What I would welcome with open arms though would be making active path on top clickable so upon clicking it would take you to the clicked folder (like in windows explorer).

zorzysty avatar Aug 08 '18 15:08 zorzysty

You mean when (say) you're at C:\Users\Michael\dev and click on Michael, then fman takes you to C:\Users\Michael?

mherrmann avatar Aug 08 '18 15:08 mherrmann

Yes, exactly that.

zorzysty avatar Aug 08 '18 15:08 zorzysty

Okay. Can I ask you to open a separate issue for this? It's not really part of this one.

mherrmann avatar Aug 08 '18 15:08 mherrmann

Done: #472

zorzysty avatar Aug 08 '18 15:08 zorzysty

Thank you!

mherrmann avatar Aug 08 '18 15:08 mherrmann

Also experience from TC: when you enter an empty directory, you can go back simply by pressing Enter (the same way as you've entered).

Here, I have a "No file is selected!" alert, which is confusing at first.

pravic avatar Nov 21 '18 12:11 pravic

I highly assume you do know the Backspace shortcut for going up a directory @pravic. Just wanted to mention it to make sure.

mherrmann avatar Nov 21 '18 12:11 mherrmann

Of course. I was talking about "user experience" (i.e. observable behaviour which can be expectable in similar programs).

pravic avatar Nov 21 '18 12:11 pravic

Yes, I confirm it: having to press one button (Enter) instead of two (Enter+Backspace) in order to go back from an empty directory is priceless.

@mherrmann Is there a way to achieve this with a plugin? Or it can be done only by fman itself?

pravic avatar Nov 26 '18 05:11 pravic

Yes, you could implement this as a plugin. But I'm curious: Why do you have to press Enter+Backspace to go back? Or do you mean the Enter is to open the empty directory in the first place?

If you want me to give you pointers on how to write the plugin, just let me know. Should be pretty easy.

mherrmann avatar Nov 26 '18 06:11 mherrmann

Or do you mean the Enter is to open the empty directory in the first place?

This. How else would you enter a directory? :)

As for instructions - yes, they would be helpful.

pravic avatar Nov 26 '18 10:11 pravic

Yes you are right, it was not the smartest question ;-)

Okay! Create a plugin with the following Python code:

from fman import DirectoryPaneListener

class GoUpOnEnterInEmptyDirectory(DirectoryPaneListener):
    def on_command(self, command, args):
        if command == 'open':
            if not self.pane.get_file_under_cursor():
                return 'go_up', {}

(You don't have to create a Key Bindings.json file.)

If that leave something unanswered, let me know.

mherrmann avatar Nov 26 '18 10:11 mherrmann

Works like a charm. Thanks!

pravic avatar Nov 29 '18 11:11 pravic

Happy to hear it!

mherrmann avatar Nov 29 '18 11:11 mherrmann

My opinion is that Backspace is not so intuitive to go to the parent directory. A browser uses Alt+Left arrow to go Back, and I think people are more used to that. Something visual is needed.

dcsoft4 avatar Nov 29 '18 16:11 dcsoft4

The question is: Do I want to optimize fman for first time use, or for the power user who already knows it. The double dots ".." are visual and may thus be more intuitive for first time users. But power users, who should use the keyboard most of the time because that's what fman is optimized for, will no longer wonder "how do I go up a directory?". For them, the double dots require screen estate for (imho) little added benefit.

In my eyes, it's similar to the F3, F4, ... button row which other file managers display at the bottom:

image

Yes it's nice for first-time users. But totally unnecessary for heavy users.

I strive to help first time users eg. with the tutorial.

mherrmann avatar Nov 30 '18 07:11 mherrmann

Hi there, this is one of the few features preventing me from fully switching to fman. Other software can use mouse heavily and having to switch from mouse-oriented work to keyboard-only work is not productive. The ability to navigate with the mouse would be game changing for my usecase.

proudot avatar Oct 10 '19 16:10 proudot

Thank you for the feedback @proudot. One of fman's strengths (imho) is that it is laser-focused on doing one thing, and that thing well. This thing is efficient file management with the keyboard. fman really isn't meant to be used with the mouse, and never will be. Sure, you can click around in fman because sometimes you may need it. But adding the .. entry - which is then always visible and takes up screen estate - is too high a cost for that occasional use. Sorry.

mherrmann avatar Oct 14 '19 06:10 mherrmann

Ok, and how about a customizable shortcut mapped to a mouse click, such as the third button ?

proudot avatar Oct 14 '19 21:10 proudot

I agree with @proudot . This would be a great addition to fman, so users who have decades of muscle memory can switch easier. Make it configurable and disable it by default if you want to show a "clean" interface for the new users. It would be also good to have the mouse side "back" button to move up to parent. More options for an often used functionality doesn't make the software more cluttered.

eandmsz avatar Jul 09 '20 14:07 eandmsz

This issue now has 30 votes and @eandmsz brings up a great way to make everyone happy. This is the single thing holding me back from making fman my default file manager on Linux. People downloading a NC/TC clone expect the basic functionality to be identical, otherwise they'll turn somewhere else.

Thanks!

vfxdev avatar Mar 18 '21 13:03 vfxdev

I've added ".." entries by plugin - FmanDotEntries.
Work for me at Win & Mac.

BTW I didn't found any API to add new entries so it a bit clutters.
If anyone knows best way - PRs welcomed.

strayge avatar Jul 25 '21 16:07 strayge

Epic. Thank you @strayge!

mherrmann avatar Jul 26 '21 10:07 mherrmann