Development :  K-Meleon Web Browser Forum
K-Meleon development related discussions. 
Pages: 12Next
Current Page: 1 of 2
[kplugin] Search Bar Ext
Posted by: teK
Date: September 21, 2008 09:25AM

I wanted a searchbar more similar to the Firefox one, so I try to make one.

If you are interested to test it : download

-you can drag&drop text or url into the editbox
-settings allow to open url in background
-the bar width is fixed
-30 entries max in the dropdown list
-selected searchengine name appears (faded) in the editbox when it is empty and doesn't have the focus



Edited 4 time(s). Last edit at 10/07/2008 11:34AM by teK.

Options: ReplyQuote
Re: [kplugin] Search Bar Ext
Posted by: desga2
Date: September 21, 2008 11:21AM

It's great, thanks for shared this SearchBar kplugin!

Some notes:

In Settings... dialog first column must be radio buttons instead checkboxes because with checkboxes it's possible uncheck all options.

I had a K-Meleon crash when tried search pressing search button in SearchBar when SearchBar is empty or i pasted some text in it.

I had a K-Meleon crash when exit with this SearchBar plugin:
XPCOM:EventReceiver:k-meleon.exe - Application error
Instruction in "0x7ce7847f" refferer to memory address "0x01d085c0". Memory can't be "read".

K-Meleon in Spanish



Edited 2 time(s). Last edit at 09/21/2008 11:43AM by desga2.

Options: ReplyQuote
Re: [kplugin] Search Bar Ext
Posted by: JujuLand
Date: September 21, 2008 12:21PM

@TeK,

Thank for this new toolbar.

I have tested with a few K-Meleon versions (1.1.x, 1.5.x and 1.6b2):

- settings and engine choice not possible with 1.1.x

- no crash for me when searching with an empty search string or when pasting text ( with 1.1.x, 1.5.x and 1.6b2), but I think the search button ought to be inoperant when empty string (the same with key enter).

- no crash when exiting with 1.1.x, 1.5.x and 1.6b2

A+



Mozilla/5.0 (x11; U; Linux x86_64; fr-FR; rv:38.0) Gecko/20100101 Ubuntu/12.04 K-Meleon/76.0


Web: http://jujuland.pagesperso-orange.fr/
Mail : alain [dot] aupeix [at] wanadoo [dot] fr



Ubuntu 12.04 - Gramps 3.4.9 - Harbour 3.2.0 - Hwgui 2.20-3 - K-Meleon 76.0 rc





Edited 2 time(s). Last edit at 09/21/2008 12:22PM by JujuLand.

Options: ReplyQuote
Re: [kplugin] Search Bar Ext
Posted by: teK
Date: September 21, 2008 06:14PM

Thanks for your replies... I made some corrections
- change all checkbox into radiobuttons, in dialogbox settings
- should not crash anymore when opening/closing new window
- works on KM 1.1.x

But some problems left when opening links into new window, it's hard to manage, I think I will remove those settings.

Options: ReplyQuote
Re: [kplugin] Search Bar Ext
Posted by: Matt
Date: September 21, 2008 06:51PM

@ teK

Thank you very much for the searchbar! It works great with K-Meleon 1.5 (no crashes, but I've tested it only with tabs, I don't use windows at all).
K-Meleon has now a searchbar it really deserves. Mayby this plugin should be icluded in some next K-Meleon release?

Options: ReplyQuote
Re: [kplugin] Search Bar Ext
Posted by: desga2
Date: September 21, 2008 07:31PM

I'm testing with 1.5 and the new version (r005) is better, thanks.

Now not crash with searchbox empty.

I detected a problem in paste actions with right click contextmenu:
1) Selected and copy some text.
2) Right click over searchbox and select Paste.
3) Text pasted in searchbox is showed loki selected searchengine name (faded).
4) Click in Search button, this load the searchengine home instead text pasted query. If you press enter key instead click in Search button this load text pasted query.

K-Meleon in Spanish



Edited 1 time(s). Last edit at 09/21/2008 07:35PM by desga2.

Options: ReplyQuote
Re: [kplugin] Search Bar Ext
Posted by: panzer
Date: September 21, 2008 08:15PM

Good searchbar, teK. Altough the previous one was not bad either ...

Options: ReplyQuote
Re: [kplugin] Search Bar Ext
Posted by: JujuLand
Date: September 22, 2008 09:42AM

@TeK,

1)

it now works with 1.1.x (engines and settings are now avalaible), but I have two new problems.

With my extension Roboform, K-Meleon opens roboform XUL in a layer to initialize roboform toolbar, close the layer (to fix the crash problem), and opens homepage.

If I load SearchBarExt, the extension works, but homepage is no more loaded, I must do it manually.

It seems you do something in OnActivateWindow event which block the extension.

It doesn't make problem with 1.5.x, due to the fact that I'm not able to launch automatically the homepage with tabs, and so, for 1.5, I don't use OnActivateWindow event.

2) It brokes the overture (I close maximized (with open like when closed), and now always opens not maximized.

A+



Mozilla/5.0 (x11; U; Linux x86_64; fr-FR; rv:38.0) Gecko/20100101 Ubuntu/12.04 K-Meleon/76.0


Web: http://jujuland.pagesperso-orange.fr/
Mail : alain [dot] aupeix [at] wanadoo [dot] fr



Ubuntu 12.04 - Gramps 3.4.9 - Harbour 3.2.0 - Hwgui 2.20-3 - K-Meleon 76.0 rc





Edited 1 time(s). Last edit at 09/22/2008 10:06AM by JujuLand.

Options: ReplyQuote
Re: [kplugin] Search Bar Ext
Posted by: JujuLand
Date: September 22, 2008 10:24AM

The two problems don't occur with searchbarext version 0.0.4.

But there is a problem with all your versions with layers. It works with window. It works with tabs, but not layers.

I think you use tab calls instead of layers call. You probably must do what I have done with Searchbar: call the good plugin to open new tab/layer.

I think also that the two problems occurs because of a bad plugin call tabs instead of layers.

A+



Mozilla/5.0 (x11; U; Linux x86_64; fr-FR; rv:38.0) Gecko/20100101 Ubuntu/12.04 K-Meleon/76.0


Web: http://jujuland.pagesperso-orange.fr/
Mail : alain [dot] aupeix [at] wanadoo [dot] fr



Ubuntu 12.04 - Gramps 3.4.9 - Harbour 3.2.0 - Hwgui 2.20-3 - K-Meleon 76.0 rc





Edited 3 time(s). Last edit at 09/26/2008 06:53AM by JujuLand.

Options: ReplyQuote
Re: [kplugin] Search Bar Ext
Posted by: Hao Jiang
Date: September 25, 2008 10:37PM

This plugin is great. Great thanks to your work. Does the source of this plugin available also?

And how can you change all search engines?



Edited 1 time(s). Last edit at 09/25/2008 10:44PM by Hao Jiang.

Options: ReplyQuote
Re: [kplugin] Search Bar Ext
Posted by: teK
Date: September 26, 2008 09:30AM

r006 :
* remove settings to open in new window (all KM)
* remove settings to open in new layer (KM < 1.5)
* select/highlight text when editbox get focus
* text from paste action is no more grey

So I removed all that is related to new windows, until I find a way to manage them.

Hao,
I will release the source later
To change the search engines, just do as usual.

Options: ReplyQuote
Re: [kplugin] Search Bar Ext
Posted by: Hao Jiang
Date: September 26, 2008 02:14PM

Tek,
I included this plugin in latest CCFME version. Hope you don't mind that or I 'll remove it.

Hao



Edited 1 time(s). Last edit at 09/26/2008 09:18PM by Hao Jiang.

Options: ReplyQuote
Re: [kplugin] Search Bar Ext
Posted by: JujuLand
Date: September 27, 2008 09:21PM

@TeK,

using version 006 with 1.1.x, it works ok, no more problems.

I have found that the value of searchbarext.open was 11.
I change it to 2, and now it uses a new layer, so it will be easy, with a macro and a menu entry, to simulate the menu settings.

Have you the value to open in a new window, and also in background for layers and windows.

A+



Mozilla/5.0 (x11; U; Linux x86_64; fr-FR; rv:38.0) Gecko/20100101 Ubuntu/12.04 K-Meleon/76.0


Web: http://jujuland.pagesperso-orange.fr/
Mail : alain [dot] aupeix [at] wanadoo [dot] fr



Ubuntu 12.04 - Gramps 3.4.9 - Harbour 3.2.0 - Hwgui 2.20-3 - K-Meleon 76.0 rc



Options: ReplyQuote
Re: [kplugin] Search Bar Ext
Posted by: desga2
Date: October 06, 2008 10:05AM

Hi teK, i found an error in your SearchBar plugin.
Please, can you read this thread about it.

Thanks.

K-Meleon in Spanish

Options: ReplyQuote
Re: [kplugin] Search Bar Ext
Posted by: teK
Date: October 07, 2008 11:53AM

I had so much problem managing windows/layers/tabs that I remove all settings, so you can now only launch a search in current window/layer/tab. Thus it works the same way on KM-1.1.x, KM-1.5 and KM-CCF.

Version is now 0.1.0.
Sources are available (no licence, do what you want with them).

desga2,
this version may solve your problem.

jujuland,
I let the r006 binary available, searchbarext.open can be 2 for new layer, 3 for bg layer or any other value for current layer, but it didn't work correctly in v1.1.6.

hao,
feel free to include this plugin in CCF.

Options: ReplyQuote
Re: [kplugin] Search Bar Ext
Posted by: desga2
Date: October 08, 2008 11:39AM

HI teK, thanks for your updates, but this last update (0.1.0) not solved exit error when source code window is open.

K-Meleon in Spanish



Edited 1 time(s). Last edit at 10/08/2008 11:39AM by desga2.

Options: ReplyQuote
Re: [kplugin] Search Bar Ext
Posted by: teK
Date: October 15, 2008 02:53PM

A 0.2.0-test1 version is available :
- windows/layers/tabs are back
- when you change search engine, all windows/layers' editbox are refreshed

desga2,
does it solve your problem ?

jujuland,
can you tell me if you see a problem in KM-1.1.x ?

Options: ReplyQuote
Re: [kplugin] Search Bar Ext
Posted by: desga2
Date: October 15, 2008 03:38PM

Hi teK, thanks again for updates smiling smiley
This new version 0.2.0test1, partially solves the exit error problem.

Now the error happend only when you exit with "File -> Exit K-Meleon" menu option or with his accelerate key Ctrl+Alt+F4

You are in a good way to solved this error. smiling smiley

K-Meleon in Spanish

Options: ReplyQuote
Re: [kplugin] Search Bar Ext
Posted by: Hao Jiang
Date: October 16, 2008 05:17PM

Thank you for this new version.

However I found a bug in the previous 0.1 version. This searchbar doesn't support unicode text, search of Chinese/Japanese text won't work.

Options: ReplyQuote
Re: [kplugin] Search Bar Ext
Posted by: teK
Date: October 17, 2008 08:26PM

Ver0.2.1-test-1 available:
- no more limitation on the maximum number of entries in the dropdown list
- partial unicode support (does not work for drag&drop)

Ver0.2.1-test-2:
- unicode support for drag&drop
- fix selection when editbox get focus and some text is selected

desga2,
same question =), does it solve your problem ?

Hao,
does unicode works well ?



Edited 1 time(s). Last edit at 10/18/2008 03:35PM by teK.

Options: ReplyQuote
Re: [kplugin] Search Bar Ext
Posted by: desga2
Date: October 17, 2008 08:42PM

Thanks for update.

Sorry teK, but this last update 0.2.1test1 not solved the error showed when exit with File -> Exit K-Meleon (Ctrl+Alt+F4)

K-Meleon in Spanish

Options: ReplyQuote
Re: [kplugin] Search Bar Ext
Posted by: Hao Jiang
Date: October 19, 2008 07:20AM

Quote
teK
Ver0.2.1-test-1 available:
- no more limitation on the maximum number of entries in the dropdown list
- partial unicode support (does not work for drag&drop)

Ver0.2.1-test-2:
- unicode support for drag&drop
- fix selection when editbox get focus and some text is selected

desga2,
same question =), does it solve your problem ?

Hao,
does unicode works well ?

Unicode still not working well. Search result from Google gives weird result:

http://www.google.com/search?q=%810%8A1%810%866%816%A78%810%8A2%810%852%810%826

Options: ReplyQuote
Re: [kplugin] Search Bar Ext
Posted by: desga2
Date: October 19, 2008 11:23AM

Sorry teK, but this last update 0.2.1-test2 not solved the error showed when exit with File -> Exit K-Meleon (Ctrl+Alt+F4)

K-Meleon in Spanish

Options: ReplyQuote
Re: [kplugin] Search Bar Ext
Posted by: teK
Date: October 20, 2008 08:39AM

desga2, I made a test3 that should solve your problem.

Options: ReplyQuote
Re: [kplugin] Search Bar Ext
Posted by: desga2
Date: October 20, 2008 11:43AM

Thanks teK! Now K-Meleon exit is OK!
Bug fixed with 0.2.1-test-3.

K-Meleon in Spanish

Options: ReplyQuote
Re: [kplugin] Search Bar Ext
Posted by: Hao Jiang
Date: October 20, 2008 08:21PM

Also, I noticed that the conflict with bookmark plugin.

When click the bookmark bar button and choose one bookmark, it will pop up the searchbar search engine list.

Options: ReplyQuote
Re: [kplugin] Search Bar Ext
Posted by: desga2
Date: October 21, 2008 12:57PM

Quote
Hao Jiang
Also, I noticed that the conflict with bookmark plugin.

When click the bookmark bar button and choose one bookmark, it will pop up the searchbar search engine list.

This not happent in 1.5.0 official release. (I tested it)

K-Meleon in Spanish

Options: ReplyQuote
Re: [kplugin] Search Bar Ext
Posted by: Hao Jiang
Date: October 21, 2008 09:38PM

Quote
desga2
Quote
Hao Jiang
Also, I noticed that the conflict with bookmark plugin.

When click the bookmark bar button and choose one bookmark, it will pop up the searchbar search engine list.

This not happent in 1.5.0 official release. (I tested it)

Try the leftmost button on the bookmark bar.

Options: ReplyQuote
Re: [kplugin] Search Bar Ext
Posted by: Hao Jiang
Date: October 21, 2008 09:44PM

Just tested test3, unicode searching works now. Thanks.

Options: ReplyQuote
Re: [kplugin] Search Bar Ext
Posted by: desga2
Date: October 21, 2008 11:32PM

Thanks Hao, yes you are right. Searchbar's search engine poupup menu is showed when you open a bookmark from ^^ bookmark popup menu button (the most left) in bookmarks bar.

K-Meleon in Spanish

Options: ReplyQuote
Pages: 12Next
Current Page: 1 of 2


K-Meleon forum is powered by Phorum.