Context help in Geany

Linux specific questions.
Landeel
Posts: 690
Joined: Jan 25, 2007 10:32
Location: Brazil
Contact:

Context help in Geany

Postby Landeel » Jan 04, 2012 10:51

1) Go here http://www.freebasic.net/get and download the manual in HTML Compiled Format (.chm);

2) Install kchmviewer http://www.kchmviewer.net/;

3) In Geany, go to Edit - Preferences - Tools - Context Action, and set it to " kchmviewer --sindex %s /path/to/your/fb.chm " (without the quotes) ;

4) To define which key will bring the help, go to Edit - Preferences - Keybindinds - Editor - Context Action.

I hope it's useful.
fxm
Posts: 9126
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Re: Context help in Geany

Postby fxm » Jan 04, 2012 12:05

Landeel wrote:1) Go here http://www.freebasic.net/get and download the manual in HTML Compiled Format (.chm);

2) Install kchmviewer http://www.kchmviewer.net/;

3) In Geany, go to Edit - Preferences - Tools - Context Action, and set it to " kchmviewer --sindex %s /path/to/your/fb.chm " (without the quotes) ;

4) To define which key will bring the help, go to Edit - Preferences - Keybindinds - Editor - Context Action.

I hope it's useful.

In the menu 'Build' then 'Set Build Commands', you can also use the third line of the 'FreeBasic source file Commands' block (the second line is reserved for the predefined button "Build"), to call the FreeBASIC help.

See this post dedicated to Windows, but I think it may bee easily transposed to Linux:
viewtopic.php?p=148787#p148787
TJF
Posts: 3481
Joined: Dec 06, 2009 22:27
Location: N47°, E15°
Contact:

Re: Context help in Geany

Postby TJF » Jan 04, 2012 13:35

If you use context action (default = F12, descibed by Landeel) one action will be used for all text files.

When using the compile menu (descibed by fxm) you can have different actions depending on the file type. Ie for FreeBasic source (*.bas, *.bi) you can execute another command as for C- or LaTeX source. To set defaults for each file type edit the [build-menu] section in filetypes.XYZ files in the 'filedefs' folder, where XYZ is the file type (ie freebasic, c, latex, ...). Then you need not type the command for each new project.
Landeel
Posts: 690
Joined: Jan 25, 2007 10:32
Location: Brazil
Contact:

Re: Context help in Geany

Postby Landeel » Jan 04, 2012 14:02

In the menu 'Build' then 'Set Build Commands'

Hm, I don't have that option. Probably because I'm using an older version of Geany.
TJF
Posts: 3481
Joined: Dec 06, 2009 22:27
Location: N47°, E15°
Contact:

Re: Context help in Geany

Postby TJF » Jan 04, 2012 14:17

Landeel wrote:
In the menu 'Build' then 'Set Build Commands'

Hm, I don't have that option. Probably because I'm using an older version of Geany.

It's in there since version 0.19, AFAIR.
Landeel
Posts: 690
Joined: Jan 25, 2007 10:32
Location: Brazil
Contact:

Re: Context help in Geany

Postby Landeel » Jan 04, 2012 14:21

0.17 here.
Well, one more reson to dist-upgrade.
badidea
Posts: 1461
Joined: May 24, 2007 22:10
Location: The Netherlands

Re: Context help in Geany

Postby badidea » Sep 06, 2019 17:34

I just figured out an alternative way to have context help in Geany:

A) Menu: Edit -> Preferences -> Tools -> Context action: "firefox https://freebasic.net/wiki/wikka.php?wakka=KeyPg%s"
B) Menu: Edit -> Preferences -> Keybindings -> Action Editor, Context Action -> Set to e.g. Ctrl+F1 (<Primary>F1>) which was still unused here.

Requires internet connection (and firefox), but always up to date help.
TJF
Posts: 3481
Joined: Dec 06, 2009 22:27
Location: N47°, E15°
Contact:

Re: Context help in Geany

Postby TJF » Sep 07, 2019 7:51

badidea wrote:I just figured out an alternative way to have context help in Geany:

A) Menu: Edit -> Preferences -> Tools -> Context action: "firefox https://freebasic.net/wiki/wikka.php?wakka=KeyPg%s"
B) Menu: Edit -> Preferences -> Keybindings -> Action Editor, Context Action -> Set to e.g. Ctrl+F1 (<Primary>F1>) which was still unused here.

Requires internet connection (and firefox), but always up to date help.
Step B) isn't necessary. By default the context action is at F12 key.

Regarding step A), the setting at Edit -> Preferences -> Tools -> Context is global. Additionally you can override it by individual configurations for each file type. Ie I'm using for FreeBASIC and C

Code: Select all

context_action_cmd=devhelp -s "%s"
in the files
  • filedefs/filetypes.freebasic and
  • filedefs/filetypes.c
Regards

Return to “Linux”

Who is online

Users browsing this forum: No registered users and 43 guests