mirror of
https://github.com/nadrad/h-m-m.git
synced 2024-06-01 02:42:11 +02:00
Compare commits
2 commits
68a62d6278
...
da03517de1
Author | SHA1 | Date | |
---|---|---|---|
da03517de1 | |||
533a8b94ae |
17
h-m-m
17
h-m-m
|
@ -338,6 +338,7 @@ $keybindings[special_keys['ctrl_p']] = 'append';
|
||||||
|
|
||||||
$keybindings['q'] = 'quit';
|
$keybindings['q'] = 'quit';
|
||||||
$keybindings['Q'] = 'shutdown';
|
$keybindings['Q'] = 'shutdown';
|
||||||
|
$keybindings[special_keys['ctrl_q']] = 'quit_with_debug';
|
||||||
|
|
||||||
$keybindings['r'] = 'collapse_other_branches';
|
$keybindings['r'] = 'collapse_other_branches';
|
||||||
$keybindings['R'] = 'collapse_inner';
|
$keybindings['R'] = 'collapse_inner';
|
||||||
|
@ -2558,6 +2559,22 @@ function quit()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function quit_with_debug()
|
||||||
|
{
|
||||||
|
global $mm;
|
||||||
|
$file = fopen('./h-m-m--debug.txt', "w");
|
||||||
|
|
||||||
|
if ($file!==false)
|
||||||
|
{
|
||||||
|
fwrite($file, serialize($mm));
|
||||||
|
fclose($file);
|
||||||
|
echo "Debug information is written to h-m-m--debug.txt file.";
|
||||||
|
}
|
||||||
|
|
||||||
|
shutdown();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// }}}
|
// }}}
|
||||||
// {{{ move_window
|
// {{{ move_window
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue