Hi All,
I would like to know if anyone knows a comfortable way to display a web page for the current selection based on the language type and ideally a pattern. I think of something like this:
- right click on a selection
- choose some context menu item
- depending on the selected text open a browser with a search result
- search page should ideally depend on file/language type and pattern. So if the file is a "C" file then, e.g. search the glib reference manual if selected text matches "g_*". On no better match (as a default for the language "C" search on a general "C" page (e.g. www.cplusplus.com).
Is there any existing comfortable solution for this? Thanks for all replies in advance.
Best Regards, Lars
http://plugins.geany.org/devhelp.html
Cheers Lex
On 14 October 2017 at 02:08, Lars Paulsen lars_paulsen@web.de wrote:
Hi All,
I would like to know if anyone knows a comfortable way to display a web page for the current selection based on the language type and ideally a pattern. I think of something like this:
right click on a selection
choose some context menu item
depending on the selected text open a browser with a search result
search page should ideally depend on file/language type and pattern. So if
the file is a "C" file then, e.g. search the glib reference manual if selected text matches "g_*". On no better match (as a default for the language "C" search on a general "C" page (e.g. www.cplusplus.com).
Is there any existing comfortable solution for this? Thanks for all replies in advance.
Best Regards, Lars
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Thanks, Lex.
Works well and close to what I was looking for but I would prefer a solution that is searching the web and opening the result in the browser. Also I would like to configure where to search.
On 13.10.2017 18:27, Lex Trotman wrote:
http://plugins.geany.org/devhelp.html
Cheers Lex
On 14 October 2017 at 02:08, Lars Paulsen lars_paulsen@web.de wrote:
Hi All,
I would like to know if anyone knows a comfortable way to display a web page for the current selection based on the language type and ideally a pattern. I think of something like this:
right click on a selection
choose some context menu item
depending on the selected text open a browser with a search result
search page should ideally depend on file/language type and pattern. So if
the file is a "C" file then, e.g. search the glib reference manual if selected text matches "g_*". On no better match (as a default for the language "C" search on a general "C" page (e.g. www.cplusplus.com).
Is there any existing comfortable solution for this? Thanks for all replies in advance.
Best Regards, Lars
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Hey Lars,
Le 13/10/2017 à 09:08, Lars Paulsen a écrit :
I would like to know if anyone knows a comfortable way to display a web page for the current selection based on the language type and ideally a pattern. I think of something like this:
right click on a selection
choose some context menu item
depending on the selected text open a browser with a search result
search page should ideally depend on file/language type and pattern.
So if the file is a "C" file then, e.g. search the glib reference manual if selected text matches "g_*". On no better match (as a default for the language "C" search on a general "C" page (e.g. www.cplusplus.com).
Is there any existing comfortable solution for this? Thanks for all replies in advance.
I believe context actions are what you're searching for: http://www.geany.org/manual/#context-actions
Cheers, Colomban
Hi Colomban,
yes, very good, thanks. Only pattern matching is missing but it works very well. Thank you!
Greetings, Lars
On 13.10.2017 22:10, Colomban Wendling wrote:
Hey Lars,
Le 13/10/2017 à 09:08, Lars Paulsen a écrit :
I would like to know if anyone knows a comfortable way to display a web page for the current selection based on the language type and ideally a pattern. I think of something like this:
right click on a selection
choose some context menu item
depending on the selected text open a browser with a search result
search page should ideally depend on file/language type and pattern.
So if the file is a "C" file then, e.g. search the glib reference manual if selected text matches "g_*". On no better match (as a default for the language "C" search on a general "C" page (e.g. www.cplusplus.com).
Is there any existing comfortable solution for this? Thanks for all replies in advance.
I believe context actions are what you're searching for: http://www.geany.org/manual/#context-actions
Cheers, Colomban _______________________________________________ Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Le 13/10/2017 à 14:35, Lars Paulsen a écrit :
Only pattern matching is missing but it works very well. Thank you!
I guess you figured it out yourself, but FTR you could use a script that would do the pattern matching to select the URL you prefer (or even the whole different command).
Regards, Colomban