Method

GntTextViewattach_editor_widget

Declaration [src]

void
gnt_text_view_attach_editor_widget (
  GntTextView* view,
  GntWidget* widget
)

Description [src]

Setup appropriate hooks so that pressing some keys when ‘widget’ is in focus triggers the EDITOR to popup with the contents of the textview in it.

The default key-combination to trigger the pager is a-e, and the default EDITOR application is $EDITOR. Both can be changed in ~/.gntrc like this:

[editor] key = a-e path = /path/to/editor

Parameters

widget

Type: GntWidget

The widget to trigger the EDITOR.

The data is owned by the caller of the function.