Page 1 of 2

Branch view new folder subfolder creation order

Posted: 25 Aug 2023 02:51
by PlorerXY6
In Branch View, can you add a feature to allow new folder subfolder creation to be placed under the selected subfolder? So what I mean is when I've selected a subfolder and make a new folder, it always goes to the root directory tree rather than making a subfolder under the selected folder, which is what I'd prefer.

Re: Branch view new folder subfolder creation order

Posted: 25 Aug 2023 08:49
by admin
Something like "Create New Subfolder Here", which already exists for the tree (Miscellaneous | Tree | Create New Subfolder Here). Might be an idea, I'll consider it.

@all: Or is it natural to just do "Create New Subfolder Here" on Ctrl+N if a folder is selected in the Branch View?

Re: Branch view new folder subfolder creation order

Posted: 25 Aug 2023 09:17
by highend
@all: Or is it natural to just do "Create New Subfolder Here" on Ctrl+N if a folder is selected in the Branch View?
Makes sense and I'd like it that way

Re: Branch view new folder subfolder creation order

Posted: 25 Aug 2023 09:19
by admin
Same here. So I'll just do it. :cup:

Re: Branch view new folder subfolder creation order

Posted: 25 Aug 2023 09:36
by highend
Be careful of Nike's lawyers :ninja:

Re: Branch view new folder subfolder creation order

Posted: 25 Aug 2023 09:46
by admin
:biggrin:

Re: Branch view new folder subfolder creation order

Posted: 25 Aug 2023 10:44
by matewo
admin wrote: 25 Aug 2023 08:49 @all: Or is it natural to just do "Create New Subfolder Here" on Ctrl+N if a folder is selected in the Branch View?
May you extend this as well, if a file is selected in branch view (in a subfolder)? This would match Ctrl+N in normal view, if a file is selected.

Re: Branch view new folder subfolder creation order

Posted: 25 Aug 2023 10:59
by admin
Yep, makes sense.

Re: Branch view new folder subfolder creation order

Posted: 25 Aug 2023 11:13
by admin
Had to add an exception case (to match the real idea behind this, which is to stay within the level):

Code: Select all

    + Branch View: Slightly changed the behavior of the New Folder command in this 
      context:
      - When a folder is selected and you choose Edit | New | New Folder 
       (Ctrl+N), that folder is now created as a subfolder of the selected folder.
      - When a file is selected and you choose Edit | New | New Folder 
       (Ctrl+N), that folder is now created as a subfolder of that file's parent folder.
      - One exception: If an empty folder is selected, it is treated as a file in this 
        respect. Try it and you'll see that it makes sense.

Re: Branch view new folder subfolder creation order

Posted: 25 Aug 2023 16:31
by admin
Update. Now it also works with New Text File:

Code: Select all

    + Branch View: Slightly changed the behavior of the New Folder and New Text File 
      commands in this context:
      - When a folder is focused and you choose Edit | New | New Folder (Ctrl+N) or Edit | 
        New | New Text File (Ctrl+Shift+N), that new item is now created within the focused 
        folder.
      - When a file is focused and you choose Edit | New | New Folder (Ctrl+N) or Edit | 
        New | New Text File (Ctrl+Shift+N), that new item is now created as a sibling of 
        that file.
      - One exception: If an empty folder is focused, it is treated as a file in this 
        respect. Try it and you'll see that it makes sense.

Re: Branch view new folder subfolder creation order

Posted: 26 Aug 2023 19:32
by eil
Useful and logical additions. :tup:

Re: Branch view new folder subfolder creation order

Posted: 05 Sep 2023 21:05
by PlorerXY6
Thanks for adding this!
Can Ctrl+V (from copy paste) also work when you focus a folder in Branch View? As in paste to that subfolder, rather than root? The target also wants to be root for paste. It would be good for it to match the new subfolder creation method.

Re: Branch view new folder subfolder creation order

Posted: 08 Sep 2023 10:37
by admin
Yeah, sure, good idea. :tup:

Re: Branch view new folder subfolder creation order

Posted: 20 Sep 2023 01:05
by PlorerXY6
admin wrote: 08 Sep 2023 10:37 Yeah, sure, good idea. :tup:
Thanks for adding it, works good!

Re: Branch view new folder subfolder creation order

Posted: 27 Sep 2023 20:24
by PlorerXY6
Can Edit->New Items have same branch view creation location behaviour change? (there I have New Word, new Excel, new txt, new zip, new folder)
I know the other menu "New" works but I don't think the "New Items" one works yet.