summaryrefslogtreecommitdiff
path: root/doc/Hooks
blob: e0469e94d5e798f233d530f654df54e9bdf5f06f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
List of hooks currently being supported by Portato
==================================================

emerge:
-------
Called: When emerge or every other command given by e.g. the synccmd preference is being called.
Parameters:
	- string[] packages: Packages to emerge (includes "world", "system").
	- string[] command: The exact command to execute.
	- portato.gui.wrapper.Console console: The console the output will be written to.
	- function(string) -> None title_update: Function which updates the console title in the GUIs.

Return if override: Nothing


after_emerge:
-------------
Called: When the emerge process (or other - see emerge hook) is finished. 
Parameters:
	- string[] packages: The list of cpv's (plus "world", "system") which have been emerged. (Or not if it failed.)
	- int retcode: The return code of the command.

Return if override: Nothing
Comment: This uses an extra hook as emerge is started in an extra thread and thus all plugins being wanting to come "after" will be called while emerge is still running.

open_ebuild:
------------
Called: When an ebuild window is opened.
Parameters:
	- portato.backend.Package package: The current package whose is going to be displayed.
	- Window parent: The parent window. Exact type depends on the frontend.

Return if override: Window-object which can be called by the frontends. Please see the explicit code to see what is expected.
Comment: If you want to override - do this only for ONE specific frontend.
'>-3/+3 2014-07-14[vim] Bundle -> PluginRené 'Necoro' Neumann1-21/+21 2014-07-14[vim] Add more snippetsRené 'Necoro' Neumann1-0/+1 2014-06-30[emacs] Better highlighting of selected areas (does not clash with PG-proofRené 'Necoro' Neumann1-0/+1 state anymore). 2014-06-30[i3] Add passmenu / move pidgin-bindings to '+i'René 'Necoro' Neumann1-3/+7 2014-06-20Shelve is now part of hg properRené 'Necoro' Neumann2-646/+1 2014-06-11Update dunst configRené 'Necoro' Neumann1-106/+130 2014-05-28MOAR fontsRené 'Necoro' Neumann1-12/+3 2014-05-08[vim] vsplit on rightRené 'Necoro' Neumann1-0/+3 2014-05-07Update vundleRené 'Necoro' Neumann1-0/+0 2014-05-04[i3] TypoRené 'Necoro' Neumann1-1/+1 2014-04-14Remove our 'pass' wrapperRené 'Necoro' Neumann1-96/+0 2014-04-14[i3] Automatically move firefox to 0:ff.René 'Necoro' Neumann1-0/+1 2014-04-14Use hgview instead of hgk.René 'Necoro' Neumann1-1/+1 2013-12-09Fix start_pidgin.sh to not have lurking dbus-monitor processesRené 'Necoro' Neumann1-2/+8 2013-12-03Again one more webfont.René 'Necoro' Neumann1-0/+9 2013-12-03zsh: Make up-/down- to only use local history and Ctrl-R/-S to use globalRené 'Necoro' Neumann1-1/+13 history. 2013-12-02One more new webfontRené 'Necoro' Neumann1-0/+9 2013-11-21IE: Remove isub/isup: they are not supported anymoreRené 'Necoro' Neumann1-1/+1 2013-11-21IE/IJ: Session logicRené 'Necoro' Neumann1-2/+15 2013-11-06Colorscheme for virtual console.René 'Necoro' Neumann1-1/+5 2013-11-01Do not try to set window title and stuff in linux consoleRené 'Necoro' Neumann1-0/+3 2013-10-30Set terminal title not only on path change, but for each new prompt.René 'Necoro' Neumann1-2/+2 2013-10-22cwd-spawn: Use M-Return instead of M-o for consistency.René 'Necoro' Neumann1-2/+2 2013-10-22Add cwd-spawn to urxvt to allow spawning a new terminal from the currentRené 'Necoro' Neumann3-2/+199 working dir. 2013-10-22Use chpwd_functions and precmd_functions instead of putting everything inRené 'Necoro' Neumann1-19/+23 precmd(). 2013-09-30urxvt: execute the wgetpaste check each timeRené 'Necoro' Neumann1-2/+5 2013-09-30urxvt: wgetpaste fixRené 'Necoro' Neumann1-4/+4 2013-09-30Allow HOME variable in .Xresources.René 'Necoro' Neumann2-3/+3 2013-09-30wgetpaste support for urxvt.René 'Necoro' Neumann2-1/+28 2013-09-30Urxvt autotransform for <filename>:<line>.René 'Necoro' Neumann1-1/+4 2013-09-30Remove tabbed(x) from urxvt. We use i3 -- no need for it.René 'Necoro' Neumann1-9/+0 2013-09-30Do not display icon in urxvt. It's not supported by i3 anyway.René 'Necoro' Neumann1-1/+1 2013-09-29Remove wrong monitors lineRené 'Necoro' Neumann1-1/+0 2013-09-29Delete vimperator paste plugin -- seems not to work anymore with new FFRené 'Necoro' Neumann1-266/+0 versions. And it wasn't used anyway. 2013-09-29Use $HOST instead of Cauchiy in titleRené 'Necoro' Neumann1-1/+1 2013-09-24Remove herbstluftwmRené 'Necoro' Neumann1-1/+0 2013-09-24Conky changesRené 'Necoro' Neumann2-5/+13 2013-09-15Remove trailing slash from \~ulpRené 'Necoro' Neumann1-1/+1 2013-09-15Make cci explicitly use python2René 'Necoro' Neumann1-1/+1 2013-09-10Node/NPM preparationRené 'Necoro' Neumann3-1/+13