mirror of
https://github.com/nadrad/h-m-m.git
synced 2024-05-02 20:23:11 +02:00
ctrl+q for debugging
This commit is contained in:
parent
79f0603abd
commit
533a8b94ae
17
h-m-m
17
h-m-m
|
@ -338,6 +338,7 @@ $keybindings[special_keys['ctrl_p']] = 'append';
|
|||
|
||||
$keybindings['q'] = 'quit';
|
||||
$keybindings['Q'] = 'shutdown';
|
||||
$keybindings[special_keys['ctrl_q']] = 'quit_with_debug';
|
||||
|
||||
$keybindings['r'] = 'collapse_other_branches';
|
||||
$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
|
||||
|
||||
|
|
Loading…
Reference in a new issue