Option to set Quick find as the default search option

Talk about code development, features, specific bugs, enhancements, patches, and similar things.
Forum rules
Please keep everything here strictly on-topic.
This board is meant for Pale Moon source code development related subjects only like code snippets, patches, specific bugs, git, the repositories, etc.

This is not for tech support! Please do not post tech support questions in the "Development" board!
Please make sure not to use this board for support questions. Please post issues with specific websites, extensions, etc. in the relevant boards for those topics.

Please keep things on-topic as this forum will be used for reference for Pale Moon development. Expect topics that aren't relevant as such to be moved or deleted.
fillerup

Option to set Quick find as the default search option

Unread post by fillerup » 2019-04-26, 11:32

Can there be an option to have quickfind (activated with /) to be set as the default search option that appears when pressing Ctrl-F?

New Tobin Paradigm

Re: Option to set Quick find as the default search option

Unread post by New Tobin Paradigm » 2019-04-26, 11:41

Not without an extension.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35650
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: Option to set Quick find as the default search option

Unread post by Moonchild » 2019-04-26, 12:32

Just press '/' instead? it's less work for your fingers :)
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

Potkeny
Fanatic
Fanatic
Posts: 132
Joined: 2018-08-03, 17:00

Re: Option to set Quick find as the default search option

Unread post by Potkeny » 2019-04-26, 15:06

Moonchild wrote:
2019-04-26, 12:32
Just press '/' instead? it's less work for your fingers :)
Off-topic:
For me, "ctrl-f" needs one hand, "/" needs two. Maybe I have to rebind "/" to something else :think:

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35650
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: Option to set Quick find as the default search option

Unread post by Moonchild » 2019-04-26, 15:16

oh, the joys of international keyboards, I guess.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

fillerup

Re: Option to set Quick find as the default search option

Unread post by fillerup » 2019-04-27, 07:23

Potkeny wrote:
2019-04-26, 15:06
Moonchild wrote:
2019-04-26, 12:32
Just press '/' instead? it's less work for your fingers :)
Off-topic:
For me, "ctrl-f" needs one hand, "/" needs two. Maybe I have to rebind "/" to something else :think:
yep, pretty much the reason. ANSI is not very ergonomically suited for this particular task

New Tobin Paradigm

Re: Option to set Quick find as the default search option

Unread post by New Tobin Paradigm » 2019-04-27, 07:45

For the future it would be best if you did not mix the terms "find (in page)" and "search (the web)" because they are two different things and it can cause confusion.

fillerup

Re: Option to set Quick find as the default search option

Unread post by fillerup » 2019-04-30, 07:55

New Tobin Paradigm wrote:
2019-04-27, 07:45
For the future it would be best if you did not mix the terms "find (in page)" and "search (the web)" because they are two different things and it can cause confusion.
indeed.. i'll keep this in mind

waiting for a verdict from Moonchild, though i honestly don't think it would be even slightly difficult to implement

New Tobin Paradigm

Re: Option to set Quick find as the default search option

Unread post by New Tobin Paradigm » 2019-04-30, 10:39

The answer is no. Build a simple simple extension. I think you can do this without js if you don't want the swap to be toggle-ible.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35650
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: Option to set Quick find as the default search option

Unread post by Moonchild » 2019-04-30, 10:50

You're waiting for my answer?
I'm sorry but keyboard remapping and changing default features to cater to internationalized keyboards that have common computing keystrokes under weird key combinations is not a slope I'll be stepping on -- it's way too slippery.

So the answer is no: I won't impact browser behavior for this request. If you need to remap keys you can do so with a simple extension as Tobin indicated. I'm gathering a simple overlay of the findbar should do it.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

New Tobin Paradigm

Re: Option to set Quick find as the default search option

Unread post by New Tobin Paradigm » 2019-04-30, 11:54

The real problem is that you can't simply make it "/" it will have to be like "ctrl+/" else every time you do http:/ it would open the findbar.

But whatever solution he comes up with just have whatever it is run gFindBar.onFindCommand(); and the findbar will popup. I would suggest a toolbar button you can put on the left of the status text on the status bar my self.

Lucio Chiappetti
Astronaut
Astronaut
Posts: 660
Joined: 2014-09-01, 15:11
Location: Milan Italy

Re: Option to set Quick find as the default search option

Unread post by Lucio Chiappetti » 2019-04-30, 12:24

I never heard of "quick find" until today. Can anybody enlighten me on what the differences with normal "find" are ?
The reasonable man adapts himself to the world: the unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man. (G.B. Shaw)

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35650
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: Option to set Quick find as the default search option

Unread post by Moonchild » 2019-04-30, 13:16

It's a cut-down version of the find-in-page command.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite