Deleting the contents of the address field

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.
User avatar
bob_marcan
Newbie
Newbie
Posts: 6
Joined: 2024-07-09, 19:27

Deleting the contents of the address field

Unread post by bob_marcan » 2024-07-09, 19:41

I suggested the same for the Firefox browser.

In browser, I miss the option to delete content in the address field. Is it possible to add an X icon that will delete the current content? It's annoying to constantly mark a field and then delete it.

The reason why this would be convenient. I often copy the URL posted on a forum where it is not possible to post more than one address as a link. So many more text URLs appear there and links are a real rarity. And this marking and deleting and then inserting every time is really annoying.

The same should be implemented in the search field too.

User avatar
Kris_88
Keeps coming back
Keeps coming back
Posts: 982
Joined: 2021-01-26, 11:18

Re: Deleting the contents of the address field

Unread post by Kris_88 » 2024-07-09, 22:01

What's stopping you from just right-clicking on the URL bar and selecting "paste and go" in the context menu?

User avatar
moonbat
Knows the dark side
Knows the dark side
Posts: 5113
Joined: 2015-12-09, 15:45
Contact:

Re: Deleting the contents of the address field

Unread post by moonbat » 2024-07-10, 01:21

Kris_88 wrote:
2024-07-09, 22:01
What's stopping you from just right-clicking on the URL bar and selecting "paste and go" in the context menu?
Probably never tried it or even heard of a right-click menu :coffee:
Chrome and smartphones have really dumbed down the general public.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
Linux Mint 21 Xfce x64 on HP i5-5200 laptop, 12 GB RAM.
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX

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

Re: Deleting the contents of the address field

Unread post by Moonchild » 2024-07-10, 05:52

Even for those context-menu-impaired: If you click in the address bar when it doesn't yet have focus (e.g. after interacting with content), it will select the entire URL by default. Pasting anything in that state will replace what is selected. No need to manually clear it.
"Just because you are offended doesn't mean you are right." -- unknown
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
bob_marcan
Newbie
Newbie
Posts: 6
Joined: 2024-07-09, 19:27

Re: Deleting the contents of the address field

Unread post by bob_marcan » 2024-07-10, 09:20

Believe me, I know what the right button is. I've been in this business since 1974. Mostly as a systems engineer. I have been doing it as a hobby since retirement. And my "desktop" is fvwm. I don't use ctl/C and ctl/V as those of you who grew up on MS are used to, but the classic X11 cut/paste with the mouse.

moonbat, as for smart phones, you haven't contacted the right one. I can only smile at this "dumbed down" of yours. Some of us are adults. :-)
The problem is that there are more and more developers with an MS background and they are now transferring this "knowledge" to Linux.

A link is not always used, often only the URL in the text is used. It also applies to copying from one browser to another. Without deleting, the copied content is returned to the place where the current cursor is. Just checked. You should try it too. If that wasn't a problem, I wouldn't be making this suggestion.

This is just my suggestion. If it's rejected, I'll just grumble. And I will use a browser that will allow me to do this.

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

Re: Deleting the contents of the address field

Unread post by Moonchild » 2024-07-10, 09:45

bob_marcan wrote:
2024-07-10, 09:20
Believe me, I know what the right button is.
Well, we couldn't know that ;)
bob_marcan wrote:
2024-07-10, 09:20
The problem is that there are more and more developers with an MS background and they are now transferring this "knowledge" to Linux.
You have to realise that Pale Moon has always primarily been a Windows product. You'll find that as a result, Windows paradigms will primarily be used, including preferring clipboard copy/paste over primary buffer copy/paste (which is an old UNIX thing, really). I just had a look in WSL (Oracle Linux 8) to see how Linux handles editing in the address bar of Pale Moon; it seems to be doing it differently than what I'm used to, i.e. selected text isn't replaced when pasting, which is rather unexpected as I assumed that would be universal text editing behaviour, instead of just ignoring it and deselecting on paste, glueing text in at the cursor location. In that context I can see your request making sense as there wouldn't really be a way to overwrite without performing a keyboard action (click-select (left), DEL, paste (middle) -- with the added issue that the primary may pick up the click-select as command to copy TO the primary, which is why click to select is often off for primary users) which you obviously want to avoid here; a clickable widget would allow mouse-only (click-clear (left), paste (middle)).
"Just because you are offended doesn't mean you are right." -- unknown
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
bob_marcan
Newbie
Newbie
Posts: 6
Joined: 2024-07-09, 19:27

Re: Deleting the contents of the address field

Unread post by bob_marcan » 2024-07-10, 10:15

Right, I understand that palemoon is primarily developed for MS, although I haven't seen that anywhere. Can I expect my proposal to be accepted or should I forget about it altogether?

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

Re: Deleting the contents of the address field

Unread post by Moonchild » 2024-07-10, 10:42

bob_marcan wrote:
2024-07-10, 10:15
Can I expect my proposal to be accepted or should I forget about it altogether?
I'm not making any promises, here. It shouldn't be too hard to make the front-end changes necessary, but adding another items to the already complex address bar will take dedicated time and focus. Of course, patches are welcome if you want to contribute (the front-end is primarily XUL and javascript).
"Just because you are offended doesn't mean you are right." -- unknown
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
bob_marcan
Newbie
Newbie
Posts: 6
Joined: 2024-07-09, 19:27

Re: Deleting the contents of the address field

Unread post by bob_marcan » 2024-07-10, 14:37

All my programming these days is more or less in the shell. So no patches are to be expected from my side. I can only hope that my wish will come true.

User avatar
RealityRipple
Astronaut
Astronaut
Posts: 707
Joined: 2018-05-17, 02:34
Location: Los Berros Canyon, California
Contact:

Re: Deleting the contents of the address field

Unread post by RealityRipple » 2024-07-10, 14:41

Definitely more of something you'd make an extension for than build in, in my personal opinion.

User avatar
Kris_88
Keeps coming back
Keeps coming back
Posts: 982
Joined: 2021-01-26, 11:18

Re: Deleting the contents of the address field

Unread post by Kris_88 » 2024-07-10, 16:00

I just checked out Pale Moon (28.13.0 x64) with Puppy Linux (Fossapup 9.5 x64). The address bar behaves the same as in Windows. The current content is highlighted when focus is received and replaced with text from the buffer when pasted.
And, yes, I also tried copying from another program (Leafpad). Works fine.

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

Re: Deleting the contents of the address field

Unread post by Moonchild » 2024-07-10, 16:07

I think it depends on how the various system toolkits in Linux behave.
"Just because you are offended doesn't mean you are right." -- unknown
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
Kris_88
Keeps coming back
Keeps coming back
Posts: 982
Joined: 2021-01-26, 11:18

Re: Deleting the contents of the address field

Unread post by Kris_88 » 2024-07-10, 16:11

Moonchild wrote:
2024-07-10, 16:07
I think it depends on how the various system toolkits in Linux behave.
That is, there is a problem with specific OS versions.
I updated Pale Moon to 31.1.0. The address bar works fine.

User avatar
Kris_88
Keeps coming back
Keeps coming back
Posts: 982
Joined: 2021-01-26, 11:18

Re: Deleting the contents of the address field

Unread post by Kris_88 » 2024-07-10, 16:37

By the way, in the context menu of the address bar there is a "Delete" command. Or is it missing or not working in some versions of Linux? It works for me in both Windows and Puppy Linux.

What's the point of making separate button then?
And if the topic starter insists, then perhaps it would be better to make “Replace from buffer” rather than just “Clear”.

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

Re: Deleting the contents of the address field

Unread post by Lucio Chiappetti » 2024-07-10, 17:15

bob_marcan wrote:
2024-07-10, 09:20
And my "desktop" is fvwm. I don't use ctl/C and ctl/V as those of you who grew up on MS are used to, but the classic X11 cut/paste with the mouse.
Me too. fvwm and MB2 (in some cases I use ctl-C ctl-V if both sides allow it, but I found mouse quicker, Anyhow I believe I had an issue similar to yours and was solved by a preference due to an indirecty suggestion by Moonchild . Have a look athttps://forum.palemoon.org/viewtopic.php?f=3&t=29823&p=239423#p239419
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
bob_marcan
Newbie
Newbie
Posts: 6
Joined: 2024-07-09, 19:27

Re: Deleting the contents of the address field

Unread post by bob_marcan » 2024-07-11, 07:26

What's the point of making separate button then?

An icon in the text area, just like the "v" icon that shows the address history.

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

Re: Deleting the contents of the address field

Unread post by Moonchild » 2024-07-11, 07:50

Really, if the impact is a subset of Linux environments, and there's no real consensus whether it should even be a thing or how to give it shape, then making an extension is the route to go. Extensions can extend the address bar easily with any icon you want. Same for the search bar.
"Just because you are offended doesn't mean you are right." -- unknown
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
Kruppt
Apollo supporter
Apollo supporter
Posts: 49
Joined: 2018-07-23, 22:32

Re: Deleting the contents of the address field

Unread post by Kruppt » 2024-07-11, 14:42

bob_marcan wrote:
2024-07-09, 19:41
<snipped>
In browser, I miss the option to delete content in the address field. Is it possible to add an X icon that will delete the current content?
<snipped>
The same should be implemented in the search field too.
The extension you want is called Xclear. Does exactly what you want. Version 1.8.2 is in the Classic Add-ons Archive,
which is an extension you need to install first. Then search for Xclear and install it.
Have been using it for years, still works on Pale Moon. (works with the themes I have used, Milestone 10 currently )

About this Add-on
This add-on places an X-icon at the end of the url, search and quickfind field to clear these fields. This is mostly usefull for X-windows users (Linux, etc.), which don't want their clipboards to be erased when marking the text in the field to delete it. There are several other add-ons that do this, but this one is really lightweight and doesn't need any toolbar buttons. The functionality is more similar like the ones found in Safari and Konqueror.

Since version 1.8 the functionality to clear the fields with the mouse wheel was removed and moved to another addon https://addons.mozilla.org/de/firefox/addon/wheelclear/ which also clears other fields like form fields in web pages by moving the mouse wheel.

User avatar
bob_marcan
Newbie
Newbie
Posts: 6
Joined: 2024-07-09, 19:27

Re: Deleting the contents of the address field

Unread post by bob_marcan » 2024-07-11, 17:31

Did you try this URL https://addons.mozilla.org/de/firefox/addon/wheelclear/?

Hoppla! Wir können diese Seite nicht finden.Hoppla!

User avatar
Kruppt
Apollo supporter
Apollo supporter
Posts: 49
Joined: 2018-07-23, 22:32

Re: Deleting the contents of the address field

Unread post by Kruppt » 2024-07-11, 20:38

bob_marcan wrote:
2024-07-11, 17:31
Did you try this URL https://addons.mozilla.org/de/firefox/addon/wheelclear/?

Hoppla! Wir können diese Seite nicht finden.Hoppla!
No .. I copied and pasted from the Addon Page.
It is available via the same extension I mentioned,
(Classic Add-ons Archive)

Post Reply