@@ -38,7 +38,7 @@ def load_config(config, path)
38
38
end
39
39
end
40
40
41
- attr_accessor :color_scheme , :alias_to_debugger , :layout
41
+ attr_accessor :color_scheme , :alias_to_debugger , :layout , :key_bindings
42
42
attr_reader :enabled_screens , :filter_version , :filter , :filter_included , :filter_excluded
43
43
44
44
CONFIG_FILE_NAME = '.jardrc'
@@ -48,7 +48,19 @@ def load_config(config, path)
48
48
DEFAULT_LAYOUT = nil , # Pick layout automatically
49
49
DEFAULT_FILTER = RubyJard ::PathFilter ::FILTER_APPLICATION ,
50
50
DEFAULT_FILTER_INCLUDED = [ ] . freeze ,
51
- DEFAULT_FILTER_EXCLUDED = [ ] . freeze
51
+ DEFAULT_FILTER_EXCLUDED = [ ] . freeze ,
52
+ DEFAULT_KEY_BINDINGS = {
53
+ RubyJard ::Keys ::F2 => 'jard filter switch' ,
54
+ RubyJard ::Keys ::F5 => 'list' ,
55
+ RubyJard ::Keys ::F6 => 'up' ,
56
+ RubyJard ::Keys ::SHIFT_F6 => 'down' ,
57
+ RubyJard ::Keys ::F7 => 'step' ,
58
+ RubyJard ::Keys ::SHIFT_F7 => 'step-out' ,
59
+ RubyJard ::Keys ::F8 => 'next' ,
60
+ RubyJard ::Keys ::F9 => 'continue' ,
61
+ RubyJard ::Keys ::CTRL_D => 'continue' ,
62
+ RubyJard ::Keys ::CTRL_C => 'interrupt'
63
+ } . freeze
52
64
] . freeze
53
65
54
66
def initialize
@@ -62,6 +74,8 @@ def initialize
62
74
@alias_to_debugger = DEFAULT_ALIAS_TO_DEBUGGER . freeze
63
75
@layout = DEFAULT_LAYOUT . freeze
64
76
@enabled_screens = RubyJard ::Screens . names . dup . freeze
77
+
78
+ @key_bindings = RubyJard ::KeyBindings . new ( DEFAULT_KEY_BINDINGS )
65
79
end
66
80
67
81
def config
0 commit comments