Skip to content
This repository was archived by the owner on Mar 12, 2023. It is now read-only.

Commit aa183b7

Browse files
committed
Allow custom key binding configuration
1 parent 8161d65 commit aa183b7

File tree

6 files changed

+575
-207
lines changed

6 files changed

+575
-207
lines changed

lib/ruby_jard/config.rb

+6-2
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ def load_config(config, path)
3838
end
3939
end
4040

41-
attr_accessor :color_scheme, :alias_to_debugger, :layout, :key_bindings
42-
attr_reader :enabled_screens, :filter_version, :filter, :filter_included, :filter_excluded
41+
attr_accessor :color_scheme, :alias_to_debugger, :layout
42+
attr_reader :enabled_screens, :filter_version, :filter, :filter_included, :filter_excluded, :key_bindings
4343

4444
CONFIG_FILE_NAME = '.jardrc'
4545
DEFAULTS = [
@@ -100,5 +100,9 @@ def filter_included=(input)
100100
@filter_version += 1
101101
@filter_included = input.freeze
102102
end
103+
104+
def key_bindings=(sequences)
105+
@key_bindings = RubyJard::KeyBindings.new(sequences)
106+
end
103107
end
104108
end

0 commit comments

Comments
 (0)