Junction icon indicating copy to clipboard operation
Junction copied to clipboard

Remember for domain / file type

Open sonnyp opened this issue 4 years ago • 17 comments

User should be able to remember the application by type (for file) and domain / public suffix for urls

For file type we can simply set the selected application as the new default application.

For urls we will need to store a list somewhere. If it's a simple text file I guess Junction doesn't have to offer a UI even thought that'd be best.

Anyway, the problem is where to put that "Remember" feature.

WIP

junction-remember

Not very happy with the header bar, it feels a bit intrusive compared to this design

Screenshot from 2021-10-19 22-12-01

sonnyp avatar Oct 19 '21 22:10 sonnyp

Maybe the remember button could be visible only when the window is hovered.

Maybe the headerbar even. EDIT: Apostrophe does this when you start typing, the header bar fades away.

Similar to https://developer.gnome.org/hig/patterns/controls/overlaid.html

in some cases it is desirable to have semi-transparent controls which appear over window content.

sonnyp avatar Oct 19 '21 22:10 sonnyp

There is a feature in OpenIn, a similar program for mac that has a settings window where you can set Rules to do things like that using wildcards or regex. Additionally there is a useful option that lets you sets a default - like firefox/chrome, and sets the other browsers only to show up when a hotkey is pressed or a rule is written. So maybe it could be part of a settings file or a separate app that lets you configure it rather than a dropdown.

drod3763 avatar Oct 21 '21 13:10 drod3763

OpenIn GUI is way too complicated/cluttered.

I'd rather offer a dropdown similar to :point_up: for simple use cases - easy to use and discover.

And https://github.com/sonnyp/Junction/pull/16 for advanced users.

sonnyp avatar Nov 14 '21 21:11 sonnyp

Maybe the flow could go user selects an icon before selecting their choice of app > user selects the app > instead of just opening the app, Junction also asks the scope for default: for all links, for this website or just for this link?

That or it could go in the three dot menu on bottom right.

rohmishra avatar Nov 19 '21 23:11 rohmishra

@rohmishra I don't understand - please rephrase.

sonnyp avatar Nov 20 '21 09:11 sonnyp

so in this screenshot below, you can see the three dot menu, would it be a better option to add "always use selected app" option in that menu? Could also be a radio button for "for just this link" "for abc.xyz" and "for all links/files like this" image

rohmishra avatar Nov 20 '21 15:11 rohmishra

I'm working on a potential PR for #12 / #29 and I think we could "kill two birds with one stone" to speak with this feature being taken in consideration for default selection. What do you think? Would that be a good idea? Would need a bit of work to support specific domains too but certainly doable.

rohmishra avatar Dec 14 '21 04:12 rohmishra

I don't understand how #12 and #29 are related to this or how what we talked about would solve #5 at the same time.

sonnyp avatar Dec 14 '21 08:12 sonnyp

What I mean is we can store the url for each domain instead of just protocol.

That would also mean it would be a all or nothing affair though.

rohmishra avatar Dec 18 '21 03:12 rohmishra

I think it's too early to bake that in. 'Remember for url' needs more design/thoughts and to be implemented before it makes sense to take it into considerations.

Let's start with MimeType - it's easy enough to build upon #12 / #29 later.

sonnyp avatar Dec 18 '21 11:12 sonnyp

What if the dropdown would be in the same text field as the url on the bottom? Like so: image And when clicked it would show the "Remember domain: github.com", "Remember prefix: github.com/something/", etc.

johnnyasantoss avatar Jan 27 '22 11:01 johnnyasantoss

that seems like a fairly elegant way to do that

theotheroracle avatar Apr 25 '22 08:04 theotheroracle

It would be awesome to go as far as https://github.com/blipk/bowser-gnome, and allow specifying rules based on all URI parts, e.g.:

image

pdecat avatar Oct 18 '23 16:10 pdecat

There is Windows app BrowserPicker and it allow to write rules by regex https://github.com/mortenn/BrowserPicker?tab=readme-ov-file#match-types

Mart-Bogdan avatar Apr 07 '24 10:04 Mart-Bogdan