Files icon indicating copy to clipboard operation
Files copied to clipboard

Select current open pages as launch pages on startup.

Open crashmit opened this issue 5 years ago • 22 comments

Is your feature request related to a problem? Please describe. Currently there is no way to select the home page as a launch page alongside other ones in the "On startup" settings page.

Describe the solution you'd like image As selecting "add" will open the regular file explorer to select a folder to start at, thus eliminating the option to select Files's "Home Page", I would suggest adding a "Use Current Pages" button (naming can be different ofc) to also eliminate the need to navigate the file explorer again.

crashmit avatar Feb 23 '21 10:02 crashmit

Would "Add current pages" be better (appending currently opened pages) or "Use current pages", where the previously added pages in the list are overwritten?

nvi9 avatar Feb 23 '21 15:02 nvi9

Yes, appending the current pages looks good to me! In any case, you wouldn't overwrite stuff by accident. I like that better.

crashmit avatar Feb 23 '21 15:02 crashmit

This feature is already implemented with "Continue where you left off", can you clarify if this is what you are looking for?

yair100 avatar Feb 23 '21 16:02 yair100

No, I think you understood me wrong. I thought of a simpler way to select pages for the "Open a specific page or pages" option, that also included Files's "Home" page, that currently can't be selected there right now.

crashmit avatar Feb 23 '21 16:02 crashmit

@crashmit So you are looking for a way to set the home page as one of the launch pages?

yair100 avatar Feb 23 '21 16:02 yair100

Yes that's the main goal.

crashmit avatar Feb 23 '21 16:02 crashmit

@crashmit Thanks for clarifying, what I had in mind to solve this was to have a text box where users could enter the path (entering "home" would work as well). There would also be a browse button to open the file picker for easier navigation. What are your thoughts on this solution?

yair100 avatar Feb 23 '21 16:02 yair100

Also dual panes make it a bit more complicated 🤔 What if we just have an "Add home" button, or a context menu on "Add" button with the sidebar items listed?

nvi9 avatar Feb 23 '21 16:02 nvi9

@nvi9 I don't know if we want to add UI to the settings page to adjust this setting for the dual pane feature. We should definitely support command line arguments for this, and we already support this with the continue where you left off feature. Regarding a button for the home page, it would work, but it seems like a lazy solution.

yair100 avatar Feb 23 '21 16:02 yair100

@crashmit Thanks for clarifying, what I had in mind to solve this was to have a text box where users could enter the path (entering "home" would work as well). There would also be a browse button to open the file picker for easier navigation. What are your thoughts on this solution?

That's where the other part of my suggestion comes in. If you had a "Add current windows" button, you could just add the ones you currently have opened. That way there is no need to enter any file paths or hassle with the win32 explorer. The question here is, if people have the journey "Those windows i have opened right now are really useful / I open them quite a lot, let's add them so my startup pages" . I can totally see if this is too much of an edge case, but perhaps that's something people would use.

Suggestion here: What do you think of adding a polling bot with a dedicated channel to the discord server? I think the "help wanted" or "discussion" tags don't reach as many people as a Discord poll might. In this case, we could post a poll to get the communities opinion? I think approaching this proactively would get more response, than a github issue does. But again, if you think that would be too much effort, I understand that.

crashmit avatar Feb 23 '21 17:02 crashmit

@crashmit We can definitely do a poll once we have options to choose between, I think we should continue discussing them a bit to have a polished idea to present when we ask users for their preference. The reason I hesitate to add a button to add the current tabs is because the settings UI shouldn't have access to the open tabs. It's a disconnected UI and I would prefer if it stayed that way.

yair100 avatar Feb 23 '21 17:02 yair100

or a context menu on "Add" button with the sidebar items listed?

Actually I have made some trials with this as well:

image

This way it would be a bit hidden feature, but maybe a bit different approach would help to solve the add home issue

nvi9 avatar Feb 23 '21 17:02 nvi9

@nvi9 A menu like that seems like the best idea so far, what if there was an option to browse as well as a submenu to view recent locations?

yair100 avatar Feb 23 '21 17:02 yair100

Sounds good! So "Browse" and "Recent Location"?

crashmit avatar Feb 23 '21 18:02 crashmit

I've made this progress so far:

image

Clicking on "Add" button opens a MenuFlyout and you can either pick a directory with the usual dialog or select an item from the sidebar or from the recently opened directories.

However it has some design issues because items of MenuFlyout control are not bindable for some reason by design. I need a bit more time for investigating a fully MVVM solution in case you don't have suggestions for a better control for this purpose.

nvi9 avatar Feb 23 '21 21:02 nvi9

@nvi9 I am not sure about the sidebar menu item, but everything else looks good. About MVVM, is there an ItemsSource for the MenuFlyout?

yair100 avatar Feb 23 '21 23:02 yair100

@yair100 there is no ItemsSource, so I've tried to create an attached property, but for the first trial without datatemplates. I'll try to work on that a bit more today or tomorrow and try out some things.

I've added the sidebar item because currently it's the only way I can have Home item, browse opens the win32 dialog and the recents submenu contains directory entries of StorageApplicationPermissions.MostRecentlyUsedList in this initial implementation.

nvi9 avatar Feb 24 '21 05:02 nvi9

@nvi9 What about adding the home item to the recent items menu?

yair100 avatar Feb 24 '21 15:02 yair100

@nvi9 What about adding the home item to the recent items menu?

Always on the top, right?

image

nvi9 avatar Feb 24 '21 16:02 nvi9

Btw here is what I've done so far, @yair100 if you think it is worth merging, I can create a PR

nvi9 avatar Feb 24 '21 16:02 nvi9