Class: OpencodeClient::KeybindsConfig

Inherits:
ApiModelBase show all
Defined in:
lib/opencode_client/models/keybinds_config.rb

Overview

Custom keybind configurations

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from ApiModelBase

_deserialize, #_to_hash, #to_body, #to_s

Constructor Details

#initialize(attributes = {}) ⇒ KeybindsConfig

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    Model attributes in the form of hash



479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
# File 'lib/opencode_client/models/keybinds_config.rb', line 479

def initialize(attributes = {})
  if (!attributes.is_a?(Hash))
    fail ArgumentError, "The input argument (attributes) must be a hash in `OpencodeClient::KeybindsConfig` initialize method"
  end

  # check to see if the attribute exists and convert string to symbol for hash key
  acceptable_attribute_map = self.class.acceptable_attribute_map
  attributes = attributes.each_with_object({}) { |(k, v), h|
    if (!acceptable_attribute_map.key?(k.to_sym))
      fail ArgumentError, "`#{k}` is not a valid attribute in `OpencodeClient::KeybindsConfig`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
    end
    h[k.to_sym] = v
  }

  if attributes.key?(:'leader')
    self.leader = attributes[:'leader']
  else
    self.leader = 'ctrl+x'
  end

  if attributes.key?(:'app_exit')
    self.app_exit = attributes[:'app_exit']
  else
    self.app_exit = 'ctrl+c,ctrl+d,<leader>q'
  end

  if attributes.key?(:'editor_open')
    self.editor_open = attributes[:'editor_open']
  else
    self.editor_open = '<leader>e'
  end

  if attributes.key?(:'theme_list')
    self.theme_list = attributes[:'theme_list']
  else
    self.theme_list = '<leader>t'
  end

  if attributes.key?(:'sidebar_toggle')
    self.sidebar_toggle = attributes[:'sidebar_toggle']
  else
    self.sidebar_toggle = '<leader>b'
  end

  if attributes.key?(:'scrollbar_toggle')
    self.scrollbar_toggle = attributes[:'scrollbar_toggle']
  else
    self.scrollbar_toggle = 'none'
  end

  if attributes.key?(:'username_toggle')
    self.username_toggle = attributes[:'username_toggle']
  else
    self.username_toggle = 'none'
  end

  if attributes.key?(:'status_view')
    self.status_view = attributes[:'status_view']
  else
    self.status_view = '<leader>s'
  end

  if attributes.key?(:'session_export')
    self.session_export = attributes[:'session_export']
  else
    self.session_export = '<leader>x'
  end

  if attributes.key?(:'session_new')
    self.session_new = attributes[:'session_new']
  else
    self.session_new = '<leader>n'
  end

  if attributes.key?(:'session_list')
    self.session_list = attributes[:'session_list']
  else
    self.session_list = '<leader>l'
  end

  if attributes.key?(:'session_timeline')
    self.session_timeline = attributes[:'session_timeline']
  else
    self.session_timeline = '<leader>g'
  end

  if attributes.key?(:'session_fork')
    self.session_fork = attributes[:'session_fork']
  else
    self.session_fork = 'none'
  end

  if attributes.key?(:'session_rename')
    self.session_rename = attributes[:'session_rename']
  else
    self.session_rename = 'none'
  end

  if attributes.key?(:'session_share')
    self.session_share = attributes[:'session_share']
  else
    self.session_share = 'none'
  end

  if attributes.key?(:'session_unshare')
    self.session_unshare = attributes[:'session_unshare']
  else
    self.session_unshare = 'none'
  end

  if attributes.key?(:'session_interrupt')
    self.session_interrupt = attributes[:'session_interrupt']
  else
    self.session_interrupt = 'escape'
  end

  if attributes.key?(:'session_compact')
    self.session_compact = attributes[:'session_compact']
  else
    self.session_compact = '<leader>c'
  end

  if attributes.key?(:'messages_page_up')
    self.messages_page_up = attributes[:'messages_page_up']
  else
    self.messages_page_up = 'pageup'
  end

  if attributes.key?(:'messages_page_down')
    self.messages_page_down = attributes[:'messages_page_down']
  else
    self.messages_page_down = 'pagedown'
  end

  if attributes.key?(:'messages_half_page_up')
    self.messages_half_page_up = attributes[:'messages_half_page_up']
  else
    self.messages_half_page_up = 'ctrl+alt+u'
  end

  if attributes.key?(:'messages_half_page_down')
    self.messages_half_page_down = attributes[:'messages_half_page_down']
  else
    self.messages_half_page_down = 'ctrl+alt+d'
  end

  if attributes.key?(:'messages_first')
    self.messages_first = attributes[:'messages_first']
  else
    self.messages_first = 'ctrl+g,home'
  end

  if attributes.key?(:'messages_last')
    self.messages_last = attributes[:'messages_last']
  else
    self.messages_last = 'ctrl+alt+g,end'
  end

  if attributes.key?(:'messages_next')
    self.messages_next = attributes[:'messages_next']
  else
    self.messages_next = 'none'
  end

  if attributes.key?(:'messages_previous')
    self.messages_previous = attributes[:'messages_previous']
  else
    self.messages_previous = 'none'
  end

  if attributes.key?(:'messages_last_user')
    self.messages_last_user = attributes[:'messages_last_user']
  else
    self.messages_last_user = 'none'
  end

  if attributes.key?(:'messages_copy')
    self.messages_copy = attributes[:'messages_copy']
  else
    self.messages_copy = '<leader>y'
  end

  if attributes.key?(:'messages_undo')
    self.messages_undo = attributes[:'messages_undo']
  else
    self.messages_undo = '<leader>u'
  end

  if attributes.key?(:'messages_redo')
    self.messages_redo = attributes[:'messages_redo']
  else
    self.messages_redo = '<leader>r'
  end

  if attributes.key?(:'messages_toggle_conceal')
    self.messages_toggle_conceal = attributes[:'messages_toggle_conceal']
  else
    self.messages_toggle_conceal = '<leader>h'
  end

  if attributes.key?(:'tool_details')
    self.tool_details = attributes[:'tool_details']
  else
    self.tool_details = 'none'
  end

  if attributes.key?(:'model_list')
    self.model_list = attributes[:'model_list']
  else
    self.model_list = '<leader>m'
  end

  if attributes.key?(:'model_cycle_recent')
    self.model_cycle_recent = attributes[:'model_cycle_recent']
  else
    self.model_cycle_recent = 'f2'
  end

  if attributes.key?(:'model_cycle_recent_reverse')
    self.model_cycle_recent_reverse = attributes[:'model_cycle_recent_reverse']
  else
    self.model_cycle_recent_reverse = 'shift+f2'
  end

  if attributes.key?(:'model_cycle_favorite')
    self.model_cycle_favorite = attributes[:'model_cycle_favorite']
  else
    self.model_cycle_favorite = 'none'
  end

  if attributes.key?(:'model_cycle_favorite_reverse')
    self.model_cycle_favorite_reverse = attributes[:'model_cycle_favorite_reverse']
  else
    self.model_cycle_favorite_reverse = 'none'
  end

  if attributes.key?(:'command_list')
    self.command_list = attributes[:'command_list']
  else
    self.command_list = 'ctrl+p'
  end

  if attributes.key?(:'agent_list')
    self.agent_list = attributes[:'agent_list']
  else
    self.agent_list = '<leader>a'
  end

  if attributes.key?(:'agent_cycle')
    self.agent_cycle = attributes[:'agent_cycle']
  else
    self.agent_cycle = 'tab'
  end

  if attributes.key?(:'agent_cycle_reverse')
    self.agent_cycle_reverse = attributes[:'agent_cycle_reverse']
  else
    self.agent_cycle_reverse = 'shift+tab'
  end

  if attributes.key?(:'input_clear')
    self.input_clear = attributes[:'input_clear']
  else
    self.input_clear = 'ctrl+c'
  end

  if attributes.key?(:'input_paste')
    self.input_paste = attributes[:'input_paste']
  else
    self.input_paste = 'ctrl+v'
  end

  if attributes.key?(:'input_submit')
    self.input_submit = attributes[:'input_submit']
  else
    self.input_submit = 'return'
  end

  if attributes.key?(:'input_newline')
    self.input_newline = attributes[:'input_newline']
  else
    self.input_newline = 'shift+return,ctrl+return,alt+return,ctrl+j'
  end

  if attributes.key?(:'input_move_left')
    self.input_move_left = attributes[:'input_move_left']
  else
    self.input_move_left = 'left,ctrl+b'
  end

  if attributes.key?(:'input_move_right')
    self.input_move_right = attributes[:'input_move_right']
  else
    self.input_move_right = 'right,ctrl+f'
  end

  if attributes.key?(:'input_move_up')
    self.input_move_up = attributes[:'input_move_up']
  else
    self.input_move_up = 'up'
  end

  if attributes.key?(:'input_move_down')
    self.input_move_down = attributes[:'input_move_down']
  else
    self.input_move_down = 'down'
  end

  if attributes.key?(:'input_select_left')
    self.input_select_left = attributes[:'input_select_left']
  else
    self.input_select_left = 'shift+left'
  end

  if attributes.key?(:'input_select_right')
    self.input_select_right = attributes[:'input_select_right']
  else
    self.input_select_right = 'shift+right'
  end

  if attributes.key?(:'input_select_up')
    self.input_select_up = attributes[:'input_select_up']
  else
    self.input_select_up = 'shift+up'
  end

  if attributes.key?(:'input_select_down')
    self.input_select_down = attributes[:'input_select_down']
  else
    self.input_select_down = 'shift+down'
  end

  if attributes.key?(:'input_line_home')
    self.input_line_home = attributes[:'input_line_home']
  else
    self.input_line_home = 'ctrl+a'
  end

  if attributes.key?(:'input_line_end')
    self.input_line_end = attributes[:'input_line_end']
  else
    self.input_line_end = 'ctrl+e'
  end

  if attributes.key?(:'input_select_line_home')
    self.input_select_line_home = attributes[:'input_select_line_home']
  else
    self.input_select_line_home = 'ctrl+shift+a'
  end

  if attributes.key?(:'input_select_line_end')
    self.input_select_line_end = attributes[:'input_select_line_end']
  else
    self.input_select_line_end = 'ctrl+shift+e'
  end

  if attributes.key?(:'input_visual_line_home')
    self.input_visual_line_home = attributes[:'input_visual_line_home']
  else
    self.input_visual_line_home = 'alt+a'
  end

  if attributes.key?(:'input_visual_line_end')
    self.input_visual_line_end = attributes[:'input_visual_line_end']
  else
    self.input_visual_line_end = 'alt+e'
  end

  if attributes.key?(:'input_select_visual_line_home')
    self.input_select_visual_line_home = attributes[:'input_select_visual_line_home']
  else
    self.input_select_visual_line_home = 'alt+shift+a'
  end

  if attributes.key?(:'input_select_visual_line_end')
    self.input_select_visual_line_end = attributes[:'input_select_visual_line_end']
  else
    self.input_select_visual_line_end = 'alt+shift+e'
  end

  if attributes.key?(:'input_buffer_home')
    self.input_buffer_home = attributes[:'input_buffer_home']
  else
    self.input_buffer_home = 'home'
  end

  if attributes.key?(:'input_buffer_end')
    self.input_buffer_end = attributes[:'input_buffer_end']
  else
    self.input_buffer_end = 'end'
  end

  if attributes.key?(:'input_select_buffer_home')
    self.input_select_buffer_home = attributes[:'input_select_buffer_home']
  else
    self.input_select_buffer_home = 'shift+home'
  end

  if attributes.key?(:'input_select_buffer_end')
    self.input_select_buffer_end = attributes[:'input_select_buffer_end']
  else
    self.input_select_buffer_end = 'shift+end'
  end

  if attributes.key?(:'input_delete_line')
    self.input_delete_line = attributes[:'input_delete_line']
  else
    self.input_delete_line = 'ctrl+shift+d'
  end

  if attributes.key?(:'input_delete_to_line_end')
    self.input_delete_to_line_end = attributes[:'input_delete_to_line_end']
  else
    self.input_delete_to_line_end = 'ctrl+k'
  end

  if attributes.key?(:'input_delete_to_line_start')
    self.input_delete_to_line_start = attributes[:'input_delete_to_line_start']
  else
    self.input_delete_to_line_start = 'ctrl+u'
  end

  if attributes.key?(:'input_backspace')
    self.input_backspace = attributes[:'input_backspace']
  else
    self.input_backspace = 'backspace,shift+backspace'
  end

  if attributes.key?(:'input_delete')
    self.input_delete = attributes[:'input_delete']
  else
    self.input_delete = 'ctrl+d,delete,shift+delete'
  end

  if attributes.key?(:'input_undo')
    self.input_undo = attributes[:'input_undo']
  else
    self.input_undo = 'ctrl+-,super+z'
  end

  if attributes.key?(:'input_redo')
    self.input_redo = attributes[:'input_redo']
  else
    self.input_redo = 'ctrl+.,super+shift+z'
  end

  if attributes.key?(:'input_word_forward')
    self.input_word_forward = attributes[:'input_word_forward']
  else
    self.input_word_forward = 'alt+f,alt+right,ctrl+right'
  end

  if attributes.key?(:'input_word_backward')
    self.input_word_backward = attributes[:'input_word_backward']
  else
    self.input_word_backward = 'alt+b,alt+left,ctrl+left'
  end

  if attributes.key?(:'input_select_word_forward')
    self.input_select_word_forward = attributes[:'input_select_word_forward']
  else
    self.input_select_word_forward = 'alt+shift+f,alt+shift+right'
  end

  if attributes.key?(:'input_select_word_backward')
    self.input_select_word_backward = attributes[:'input_select_word_backward']
  else
    self.input_select_word_backward = 'alt+shift+b,alt+shift+left'
  end

  if attributes.key?(:'input_delete_word_forward')
    self.input_delete_word_forward = attributes[:'input_delete_word_forward']
  else
    self.input_delete_word_forward = 'alt+d,alt+delete,ctrl+delete'
  end

  if attributes.key?(:'input_delete_word_backward')
    self.input_delete_word_backward = attributes[:'input_delete_word_backward']
  else
    self.input_delete_word_backward = 'ctrl+w,ctrl+backspace,alt+backspace'
  end

  if attributes.key?(:'history_previous')
    self.history_previous = attributes[:'history_previous']
  else
    self.history_previous = 'up'
  end

  if attributes.key?(:'history_next')
    self.history_next = attributes[:'history_next']
  else
    self.history_next = 'down'
  end

  if attributes.key?(:'session_child_cycle')
    self.session_child_cycle = attributes[:'session_child_cycle']
  else
    self.session_child_cycle = '<leader>right'
  end

  if attributes.key?(:'session_child_cycle_reverse')
    self.session_child_cycle_reverse = attributes[:'session_child_cycle_reverse']
  else
    self.session_child_cycle_reverse = '<leader>left'
  end

  if attributes.key?(:'session_parent')
    self.session_parent = attributes[:'session_parent']
  else
    self.session_parent = '<leader>up'
  end

  if attributes.key?(:'terminal_suspend')
    self.terminal_suspend = attributes[:'terminal_suspend']
  else
    self.terminal_suspend = 'ctrl+z'
  end

  if attributes.key?(:'terminal_title_toggle')
    self.terminal_title_toggle = attributes[:'terminal_title_toggle']
  else
    self.terminal_title_toggle = 'none'
  end

  if attributes.key?(:'tips_toggle')
    self.tips_toggle = attributes[:'tips_toggle']
  else
    self.tips_toggle = '<leader>h'
  end
end

Instance Attribute Details

#agent_cycleObject

Next agent



137
138
139
# File 'lib/opencode_client/models/keybinds_config.rb', line 137

def agent_cycle
  @agent_cycle
end

#agent_cycle_reverseObject

Previous agent



140
141
142
# File 'lib/opencode_client/models/keybinds_config.rb', line 140

def agent_cycle_reverse
  @agent_cycle_reverse
end

#agent_listObject

List agents



134
135
136
# File 'lib/opencode_client/models/keybinds_config.rb', line 134

def agent_list
  @agent_list
end

#app_exitObject

Exit the application



23
24
25
# File 'lib/opencode_client/models/keybinds_config.rb', line 23

def app_exit
  @app_exit
end

#command_listObject

List available commands



131
132
133
# File 'lib/opencode_client/models/keybinds_config.rb', line 131

def command_list
  @command_list
end

#editor_openObject

Open external editor



26
27
28
# File 'lib/opencode_client/models/keybinds_config.rb', line 26

def editor_open
  @editor_open
end

#history_nextObject

Next history item



257
258
259
# File 'lib/opencode_client/models/keybinds_config.rb', line 257

def history_next
  @history_next
end

#history_previousObject

Previous history item



254
255
256
# File 'lib/opencode_client/models/keybinds_config.rb', line 254

def history_previous
  @history_previous
end

#input_backspaceObject

Backspace in input



224
225
226
# File 'lib/opencode_client/models/keybinds_config.rb', line 224

def input_backspace
  @input_backspace
end

#input_buffer_endObject

Move to end of buffer in input



206
207
208
# File 'lib/opencode_client/models/keybinds_config.rb', line 206

def input_buffer_end
  @input_buffer_end
end

#input_buffer_homeObject

Move to start of buffer in input



203
204
205
# File 'lib/opencode_client/models/keybinds_config.rb', line 203

def input_buffer_home
  @input_buffer_home
end

#input_clearObject

Clear input field



143
144
145
# File 'lib/opencode_client/models/keybinds_config.rb', line 143

def input_clear
  @input_clear
end

#input_deleteObject

Delete character in input



227
228
229
# File 'lib/opencode_client/models/keybinds_config.rb', line 227

def input_delete
  @input_delete
end

#input_delete_lineObject

Delete line in input



215
216
217
# File 'lib/opencode_client/models/keybinds_config.rb', line 215

def input_delete_line
  @input_delete_line
end

#input_delete_to_line_endObject

Delete to end of line in input



218
219
220
# File 'lib/opencode_client/models/keybinds_config.rb', line 218

def input_delete_to_line_end
  @input_delete_to_line_end
end

#input_delete_to_line_startObject

Delete to start of line in input



221
222
223
# File 'lib/opencode_client/models/keybinds_config.rb', line 221

def input_delete_to_line_start
  @input_delete_to_line_start
end

#input_delete_word_backwardObject

Delete word backward in input



251
252
253
# File 'lib/opencode_client/models/keybinds_config.rb', line 251

def input_delete_word_backward
  @input_delete_word_backward
end

#input_delete_word_forwardObject

Delete word forward in input



248
249
250
# File 'lib/opencode_client/models/keybinds_config.rb', line 248

def input_delete_word_forward
  @input_delete_word_forward
end

#input_line_endObject

Move to end of line in input



182
183
184
# File 'lib/opencode_client/models/keybinds_config.rb', line 182

def input_line_end
  @input_line_end
end

#input_line_homeObject

Move to start of line in input



179
180
181
# File 'lib/opencode_client/models/keybinds_config.rb', line 179

def input_line_home
  @input_line_home
end

#input_move_downObject

Move cursor down in input



164
165
166
# File 'lib/opencode_client/models/keybinds_config.rb', line 164

def input_move_down
  @input_move_down
end

#input_move_leftObject

Move cursor left in input



155
156
157
# File 'lib/opencode_client/models/keybinds_config.rb', line 155

def input_move_left
  @input_move_left
end

#input_move_rightObject

Move cursor right in input



158
159
160
# File 'lib/opencode_client/models/keybinds_config.rb', line 158

def input_move_right
  @input_move_right
end

#input_move_upObject

Move cursor up in input



161
162
163
# File 'lib/opencode_client/models/keybinds_config.rb', line 161

def input_move_up
  @input_move_up
end

#input_newlineObject

Insert newline in input



152
153
154
# File 'lib/opencode_client/models/keybinds_config.rb', line 152

def input_newline
  @input_newline
end

#input_pasteObject

Paste from clipboard



146
147
148
# File 'lib/opencode_client/models/keybinds_config.rb', line 146

def input_paste
  @input_paste
end

#input_redoObject

Redo in input



233
234
235
# File 'lib/opencode_client/models/keybinds_config.rb', line 233

def input_redo
  @input_redo
end

#input_select_buffer_endObject

Select to end of buffer in input



212
213
214
# File 'lib/opencode_client/models/keybinds_config.rb', line 212

def input_select_buffer_end
  @input_select_buffer_end
end

#input_select_buffer_homeObject

Select to start of buffer in input



209
210
211
# File 'lib/opencode_client/models/keybinds_config.rb', line 209

def input_select_buffer_home
  @input_select_buffer_home
end

#input_select_downObject

Select down in input



176
177
178
# File 'lib/opencode_client/models/keybinds_config.rb', line 176

def input_select_down
  @input_select_down
end

#input_select_leftObject

Select left in input



167
168
169
# File 'lib/opencode_client/models/keybinds_config.rb', line 167

def input_select_left
  @input_select_left
end

#input_select_line_endObject

Select to end of line in input



188
189
190
# File 'lib/opencode_client/models/keybinds_config.rb', line 188

def input_select_line_end
  @input_select_line_end
end

#input_select_line_homeObject

Select to start of line in input



185
186
187
# File 'lib/opencode_client/models/keybinds_config.rb', line 185

def input_select_line_home
  @input_select_line_home
end

#input_select_rightObject

Select right in input



170
171
172
# File 'lib/opencode_client/models/keybinds_config.rb', line 170

def input_select_right
  @input_select_right
end

#input_select_upObject

Select up in input



173
174
175
# File 'lib/opencode_client/models/keybinds_config.rb', line 173

def input_select_up
  @input_select_up
end

#input_select_visual_line_endObject

Select to end of visual line in input



200
201
202
# File 'lib/opencode_client/models/keybinds_config.rb', line 200

def input_select_visual_line_end
  @input_select_visual_line_end
end

#input_select_visual_line_homeObject

Select to start of visual line in input



197
198
199
# File 'lib/opencode_client/models/keybinds_config.rb', line 197

def input_select_visual_line_home
  @input_select_visual_line_home
end

#input_select_word_backwardObject

Select word backward in input



245
246
247
# File 'lib/opencode_client/models/keybinds_config.rb', line 245

def input_select_word_backward
  @input_select_word_backward
end

#input_select_word_forwardObject

Select word forward in input



242
243
244
# File 'lib/opencode_client/models/keybinds_config.rb', line 242

def input_select_word_forward
  @input_select_word_forward
end

#input_submitObject

Submit input



149
150
151
# File 'lib/opencode_client/models/keybinds_config.rb', line 149

def input_submit
  @input_submit
end

#input_undoObject

Undo in input



230
231
232
# File 'lib/opencode_client/models/keybinds_config.rb', line 230

def input_undo
  @input_undo
end

#input_visual_line_endObject

Move to end of visual line in input



194
195
196
# File 'lib/opencode_client/models/keybinds_config.rb', line 194

def input_visual_line_end
  @input_visual_line_end
end

#input_visual_line_homeObject

Move to start of visual line in input



191
192
193
# File 'lib/opencode_client/models/keybinds_config.rb', line 191

def input_visual_line_home
  @input_visual_line_home
end

#input_word_backwardObject

Move word backward in input



239
240
241
# File 'lib/opencode_client/models/keybinds_config.rb', line 239

def input_word_backward
  @input_word_backward
end

#input_word_forwardObject

Move word forward in input



236
237
238
# File 'lib/opencode_client/models/keybinds_config.rb', line 236

def input_word_forward
  @input_word_forward
end

#leaderObject

Leader key for keybind combinations



20
21
22
# File 'lib/opencode_client/models/keybinds_config.rb', line 20

def leader
  @leader
end

#messages_copyObject

Copy message



101
102
103
# File 'lib/opencode_client/models/keybinds_config.rb', line 101

def messages_copy
  @messages_copy
end

#messages_firstObject

Navigate to first message



86
87
88
# File 'lib/opencode_client/models/keybinds_config.rb', line 86

def messages_first
  @messages_first
end

#messages_half_page_downObject

Scroll messages down by half page



83
84
85
# File 'lib/opencode_client/models/keybinds_config.rb', line 83

def messages_half_page_down
  @messages_half_page_down
end

#messages_half_page_upObject

Scroll messages up by half page



80
81
82
# File 'lib/opencode_client/models/keybinds_config.rb', line 80

def messages_half_page_up
  @messages_half_page_up
end

#messages_lastObject

Navigate to last message



89
90
91
# File 'lib/opencode_client/models/keybinds_config.rb', line 89

def messages_last
  @messages_last
end

#messages_last_userObject

Navigate to last user message



98
99
100
# File 'lib/opencode_client/models/keybinds_config.rb', line 98

def messages_last_user
  @messages_last_user
end

#messages_nextObject

Navigate to next message



92
93
94
# File 'lib/opencode_client/models/keybinds_config.rb', line 92

def messages_next
  @messages_next
end

#messages_page_downObject

Scroll messages down by one page



77
78
79
# File 'lib/opencode_client/models/keybinds_config.rb', line 77

def messages_page_down
  @messages_page_down
end

#messages_page_upObject

Scroll messages up by one page



74
75
76
# File 'lib/opencode_client/models/keybinds_config.rb', line 74

def messages_page_up
  @messages_page_up
end

#messages_previousObject

Navigate to previous message



95
96
97
# File 'lib/opencode_client/models/keybinds_config.rb', line 95

def messages_previous
  @messages_previous
end

#messages_redoObject

Redo message



107
108
109
# File 'lib/opencode_client/models/keybinds_config.rb', line 107

def messages_redo
  @messages_redo
end

#messages_toggle_concealObject

Toggle code block concealment in messages



110
111
112
# File 'lib/opencode_client/models/keybinds_config.rb', line 110

def messages_toggle_conceal
  @messages_toggle_conceal
end

#messages_undoObject

Undo message



104
105
106
# File 'lib/opencode_client/models/keybinds_config.rb', line 104

def messages_undo
  @messages_undo
end

#model_cycle_favoriteObject

Next favorite model



125
126
127
# File 'lib/opencode_client/models/keybinds_config.rb', line 125

def model_cycle_favorite
  @model_cycle_favorite
end

#model_cycle_favorite_reverseObject

Previous favorite model



128
129
130
# File 'lib/opencode_client/models/keybinds_config.rb', line 128

def model_cycle_favorite_reverse
  @model_cycle_favorite_reverse
end

#model_cycle_recentObject

Next recently used model



119
120
121
# File 'lib/opencode_client/models/keybinds_config.rb', line 119

def model_cycle_recent
  @model_cycle_recent
end

#model_cycle_recent_reverseObject

Previous recently used model



122
123
124
# File 'lib/opencode_client/models/keybinds_config.rb', line 122

def model_cycle_recent_reverse
  @model_cycle_recent_reverse
end

#model_listObject

List available models



116
117
118
# File 'lib/opencode_client/models/keybinds_config.rb', line 116

def model_list
  @model_list
end

#scrollbar_toggleObject

Toggle session scrollbar



35
36
37
# File 'lib/opencode_client/models/keybinds_config.rb', line 35

def scrollbar_toggle
  @scrollbar_toggle
end

#session_child_cycleObject

Next child session



260
261
262
# File 'lib/opencode_client/models/keybinds_config.rb', line 260

def session_child_cycle
  @session_child_cycle
end

#session_child_cycle_reverseObject

Previous child session



263
264
265
# File 'lib/opencode_client/models/keybinds_config.rb', line 263

def session_child_cycle_reverse
  @session_child_cycle_reverse
end

#session_compactObject

Compact the session



71
72
73
# File 'lib/opencode_client/models/keybinds_config.rb', line 71

def session_compact
  @session_compact
end

#session_exportObject

Export session to editor



44
45
46
# File 'lib/opencode_client/models/keybinds_config.rb', line 44

def session_export
  @session_export
end

#session_forkObject

Fork session from message



56
57
58
# File 'lib/opencode_client/models/keybinds_config.rb', line 56

def session_fork
  @session_fork
end

#session_interruptObject

Interrupt current session



68
69
70
# File 'lib/opencode_client/models/keybinds_config.rb', line 68

def session_interrupt
  @session_interrupt
end

#session_listObject

List all sessions



50
51
52
# File 'lib/opencode_client/models/keybinds_config.rb', line 50

def session_list
  @session_list
end

#session_newObject

Create a new session



47
48
49
# File 'lib/opencode_client/models/keybinds_config.rb', line 47

def session_new
  @session_new
end

#session_parentObject

Go to parent session



266
267
268
# File 'lib/opencode_client/models/keybinds_config.rb', line 266

def session_parent
  @session_parent
end

#session_renameObject

Rename session



59
60
61
# File 'lib/opencode_client/models/keybinds_config.rb', line 59

def session_rename
  @session_rename
end

#session_shareObject

Share current session



62
63
64
# File 'lib/opencode_client/models/keybinds_config.rb', line 62

def session_share
  @session_share
end

#session_timelineObject

Show session timeline



53
54
55
# File 'lib/opencode_client/models/keybinds_config.rb', line 53

def session_timeline
  @session_timeline
end

#session_unshareObject

Unshare current session



65
66
67
# File 'lib/opencode_client/models/keybinds_config.rb', line 65

def session_unshare
  @session_unshare
end

Toggle sidebar



32
33
34
# File 'lib/opencode_client/models/keybinds_config.rb', line 32

def sidebar_toggle
  @sidebar_toggle
end

#status_viewObject

View status



41
42
43
# File 'lib/opencode_client/models/keybinds_config.rb', line 41

def status_view
  @status_view
end

#terminal_suspendObject

Suspend terminal



269
270
271
# File 'lib/opencode_client/models/keybinds_config.rb', line 269

def terminal_suspend
  @terminal_suspend
end

#terminal_title_toggleObject

Toggle terminal title



272
273
274
# File 'lib/opencode_client/models/keybinds_config.rb', line 272

def terminal_title_toggle
  @terminal_title_toggle
end

#theme_listObject

List available themes



29
30
31
# File 'lib/opencode_client/models/keybinds_config.rb', line 29

def theme_list
  @theme_list
end

#tips_toggleObject

Toggle tips on home screen



275
276
277
# File 'lib/opencode_client/models/keybinds_config.rb', line 275

def tips_toggle
  @tips_toggle
end

#tool_detailsObject

Toggle tool details visibility



113
114
115
# File 'lib/opencode_client/models/keybinds_config.rb', line 113

def tool_details
  @tool_details
end

#username_toggleObject

Toggle username visibility



38
39
40
# File 'lib/opencode_client/models/keybinds_config.rb', line 38

def username_toggle
  @username_toggle
end

Class Method Details

.acceptable_attribute_mapObject

Returns attribute mapping this model knows about



370
371
372
# File 'lib/opencode_client/models/keybinds_config.rb', line 370

def self.acceptable_attribute_map
  attribute_map
end

.acceptable_attributesObject

Returns all the JSON keys this model knows about



375
376
377
# File 'lib/opencode_client/models/keybinds_config.rb', line 375

def self.acceptable_attributes
  acceptable_attribute_map.values
end

.attribute_mapObject

Attribute mapping from ruby-style variable name to JSON key.



278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
# File 'lib/opencode_client/models/keybinds_config.rb', line 278

def self.attribute_map
  {
    :'leader' => :'leader',
    :'app_exit' => :'app_exit',
    :'editor_open' => :'editor_open',
    :'theme_list' => :'theme_list',
    :'sidebar_toggle' => :'sidebar_toggle',
    :'scrollbar_toggle' => :'scrollbar_toggle',
    :'username_toggle' => :'username_toggle',
    :'status_view' => :'status_view',
    :'session_export' => :'session_export',
    :'session_new' => :'session_new',
    :'session_list' => :'session_list',
    :'session_timeline' => :'session_timeline',
    :'session_fork' => :'session_fork',
    :'session_rename' => :'session_rename',
    :'session_share' => :'session_share',
    :'session_unshare' => :'session_unshare',
    :'session_interrupt' => :'session_interrupt',
    :'session_compact' => :'session_compact',
    :'messages_page_up' => :'messages_page_up',
    :'messages_page_down' => :'messages_page_down',
    :'messages_half_page_up' => :'messages_half_page_up',
    :'messages_half_page_down' => :'messages_half_page_down',
    :'messages_first' => :'messages_first',
    :'messages_last' => :'messages_last',
    :'messages_next' => :'messages_next',
    :'messages_previous' => :'messages_previous',
    :'messages_last_user' => :'messages_last_user',
    :'messages_copy' => :'messages_copy',
    :'messages_undo' => :'messages_undo',
    :'messages_redo' => :'messages_redo',
    :'messages_toggle_conceal' => :'messages_toggle_conceal',
    :'tool_details' => :'tool_details',
    :'model_list' => :'model_list',
    :'model_cycle_recent' => :'model_cycle_recent',
    :'model_cycle_recent_reverse' => :'model_cycle_recent_reverse',
    :'model_cycle_favorite' => :'model_cycle_favorite',
    :'model_cycle_favorite_reverse' => :'model_cycle_favorite_reverse',
    :'command_list' => :'command_list',
    :'agent_list' => :'agent_list',
    :'agent_cycle' => :'agent_cycle',
    :'agent_cycle_reverse' => :'agent_cycle_reverse',
    :'input_clear' => :'input_clear',
    :'input_paste' => :'input_paste',
    :'input_submit' => :'input_submit',
    :'input_newline' => :'input_newline',
    :'input_move_left' => :'input_move_left',
    :'input_move_right' => :'input_move_right',
    :'input_move_up' => :'input_move_up',
    :'input_move_down' => :'input_move_down',
    :'input_select_left' => :'input_select_left',
    :'input_select_right' => :'input_select_right',
    :'input_select_up' => :'input_select_up',
    :'input_select_down' => :'input_select_down',
    :'input_line_home' => :'input_line_home',
    :'input_line_end' => :'input_line_end',
    :'input_select_line_home' => :'input_select_line_home',
    :'input_select_line_end' => :'input_select_line_end',
    :'input_visual_line_home' => :'input_visual_line_home',
    :'input_visual_line_end' => :'input_visual_line_end',
    :'input_select_visual_line_home' => :'input_select_visual_line_home',
    :'input_select_visual_line_end' => :'input_select_visual_line_end',
    :'input_buffer_home' => :'input_buffer_home',
    :'input_buffer_end' => :'input_buffer_end',
    :'input_select_buffer_home' => :'input_select_buffer_home',
    :'input_select_buffer_end' => :'input_select_buffer_end',
    :'input_delete_line' => :'input_delete_line',
    :'input_delete_to_line_end' => :'input_delete_to_line_end',
    :'input_delete_to_line_start' => :'input_delete_to_line_start',
    :'input_backspace' => :'input_backspace',
    :'input_delete' => :'input_delete',
    :'input_undo' => :'input_undo',
    :'input_redo' => :'input_redo',
    :'input_word_forward' => :'input_word_forward',
    :'input_word_backward' => :'input_word_backward',
    :'input_select_word_forward' => :'input_select_word_forward',
    :'input_select_word_backward' => :'input_select_word_backward',
    :'input_delete_word_forward' => :'input_delete_word_forward',
    :'input_delete_word_backward' => :'input_delete_word_backward',
    :'history_previous' => :'history_previous',
    :'history_next' => :'history_next',
    :'session_child_cycle' => :'session_child_cycle',
    :'session_child_cycle_reverse' => :'session_child_cycle_reverse',
    :'session_parent' => :'session_parent',
    :'terminal_suspend' => :'terminal_suspend',
    :'terminal_title_toggle' => :'terminal_title_toggle',
    :'tips_toggle' => :'tips_toggle'
  }
end

.build_from_hash(attributes) ⇒ Object

Builds the object from hash

Parameters:

  • attributes (Hash)

    Model attributes in the form of hash

Returns:

  • (Object)

    Returns the model itself



1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
# File 'lib/opencode_client/models/keybinds_config.rb', line 1133

def self.build_from_hash(attributes)
  return nil unless attributes.is_a?(Hash)
  attributes = attributes.transform_keys(&:to_sym)
  transformed_hash = {}
  openapi_types.each_pair do |key, type|
    if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
      transformed_hash["#{key}"] = nil
    elsif type =~ /\AArray<(.*)>/i
      # check to ensure the input is an array given that the attribute
      # is documented as an array but the input is not
      if attributes[attribute_map[key]].is_a?(Array)
        transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
      end
    elsif !attributes[attribute_map[key]].nil?
      transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
    end
  end
  new(transformed_hash)
end

.openapi_nullableObject

List of attributes with nullable: true



472
473
474
475
# File 'lib/opencode_client/models/keybinds_config.rb', line 472

def self.openapi_nullable
  Set.new([
  ])
end

.openapi_typesObject

Attribute type mapping.



380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
# File 'lib/opencode_client/models/keybinds_config.rb', line 380

def self.openapi_types
  {
    :'leader' => :'String',
    :'app_exit' => :'String',
    :'editor_open' => :'String',
    :'theme_list' => :'String',
    :'sidebar_toggle' => :'String',
    :'scrollbar_toggle' => :'String',
    :'username_toggle' => :'String',
    :'status_view' => :'String',
    :'session_export' => :'String',
    :'session_new' => :'String',
    :'session_list' => :'String',
    :'session_timeline' => :'String',
    :'session_fork' => :'String',
    :'session_rename' => :'String',
    :'session_share' => :'String',
    :'session_unshare' => :'String',
    :'session_interrupt' => :'String',
    :'session_compact' => :'String',
    :'messages_page_up' => :'String',
    :'messages_page_down' => :'String',
    :'messages_half_page_up' => :'String',
    :'messages_half_page_down' => :'String',
    :'messages_first' => :'String',
    :'messages_last' => :'String',
    :'messages_next' => :'String',
    :'messages_previous' => :'String',
    :'messages_last_user' => :'String',
    :'messages_copy' => :'String',
    :'messages_undo' => :'String',
    :'messages_redo' => :'String',
    :'messages_toggle_conceal' => :'String',
    :'tool_details' => :'String',
    :'model_list' => :'String',
    :'model_cycle_recent' => :'String',
    :'model_cycle_recent_reverse' => :'String',
    :'model_cycle_favorite' => :'String',
    :'model_cycle_favorite_reverse' => :'String',
    :'command_list' => :'String',
    :'agent_list' => :'String',
    :'agent_cycle' => :'String',
    :'agent_cycle_reverse' => :'String',
    :'input_clear' => :'String',
    :'input_paste' => :'String',
    :'input_submit' => :'String',
    :'input_newline' => :'String',
    :'input_move_left' => :'String',
    :'input_move_right' => :'String',
    :'input_move_up' => :'String',
    :'input_move_down' => :'String',
    :'input_select_left' => :'String',
    :'input_select_right' => :'String',
    :'input_select_up' => :'String',
    :'input_select_down' => :'String',
    :'input_line_home' => :'String',
    :'input_line_end' => :'String',
    :'input_select_line_home' => :'String',
    :'input_select_line_end' => :'String',
    :'input_visual_line_home' => :'String',
    :'input_visual_line_end' => :'String',
    :'input_select_visual_line_home' => :'String',
    :'input_select_visual_line_end' => :'String',
    :'input_buffer_home' => :'String',
    :'input_buffer_end' => :'String',
    :'input_select_buffer_home' => :'String',
    :'input_select_buffer_end' => :'String',
    :'input_delete_line' => :'String',
    :'input_delete_to_line_end' => :'String',
    :'input_delete_to_line_start' => :'String',
    :'input_backspace' => :'String',
    :'input_delete' => :'String',
    :'input_undo' => :'String',
    :'input_redo' => :'String',
    :'input_word_forward' => :'String',
    :'input_word_backward' => :'String',
    :'input_select_word_forward' => :'String',
    :'input_select_word_backward' => :'String',
    :'input_delete_word_forward' => :'String',
    :'input_delete_word_backward' => :'String',
    :'history_previous' => :'String',
    :'history_next' => :'String',
    :'session_child_cycle' => :'String',
    :'session_child_cycle_reverse' => :'String',
    :'session_parent' => :'String',
    :'terminal_suspend' => :'String',
    :'terminal_title_toggle' => :'String',
    :'tips_toggle' => :'String'
  }
end

Instance Method Details

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
# File 'lib/opencode_client/models/keybinds_config.rb', line 1027

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      leader == o.leader &&
      app_exit == o.app_exit &&
      editor_open == o.editor_open &&
      theme_list == o.theme_list &&
      sidebar_toggle == o.sidebar_toggle &&
      scrollbar_toggle == o.scrollbar_toggle &&
      username_toggle == o.username_toggle &&
      status_view == o.status_view &&
      session_export == o.session_export &&
      session_new == o.session_new &&
      session_list == o.session_list &&
      session_timeline == o.session_timeline &&
      session_fork == o.session_fork &&
      session_rename == o.session_rename &&
      session_share == o.session_share &&
      session_unshare == o.session_unshare &&
      session_interrupt == o.session_interrupt &&
      session_compact == o.session_compact &&
      messages_page_up == o.messages_page_up &&
      messages_page_down == o.messages_page_down &&
      messages_half_page_up == o.messages_half_page_up &&
      messages_half_page_down == o.messages_half_page_down &&
      messages_first == o.messages_first &&
      messages_last == o.messages_last &&
      messages_next == o.messages_next &&
      messages_previous == o.messages_previous &&
      messages_last_user == o.messages_last_user &&
      messages_copy == o.messages_copy &&
      messages_undo == o.messages_undo &&
      messages_redo == o.messages_redo &&
      messages_toggle_conceal == o.messages_toggle_conceal &&
      tool_details == o.tool_details &&
      model_list == o.model_list &&
      model_cycle_recent == o.model_cycle_recent &&
      model_cycle_recent_reverse == o.model_cycle_recent_reverse &&
      model_cycle_favorite == o.model_cycle_favorite &&
      model_cycle_favorite_reverse == o.model_cycle_favorite_reverse &&
      command_list == o.command_list &&
      agent_list == o.agent_list &&
      agent_cycle == o.agent_cycle &&
      agent_cycle_reverse == o.agent_cycle_reverse &&
      input_clear == o.input_clear &&
      input_paste == o.input_paste &&
      input_submit == o.input_submit &&
      input_newline == o.input_newline &&
      input_move_left == o.input_move_left &&
      input_move_right == o.input_move_right &&
      input_move_up == o.input_move_up &&
      input_move_down == o.input_move_down &&
      input_select_left == o.input_select_left &&
      input_select_right == o.input_select_right &&
      input_select_up == o.input_select_up &&
      input_select_down == o.input_select_down &&
      input_line_home == o.input_line_home &&
      input_line_end == o.input_line_end &&
      input_select_line_home == o.input_select_line_home &&
      input_select_line_end == o.input_select_line_end &&
      input_visual_line_home == o.input_visual_line_home &&
      input_visual_line_end == o.input_visual_line_end &&
      input_select_visual_line_home == o.input_select_visual_line_home &&
      input_select_visual_line_end == o.input_select_visual_line_end &&
      input_buffer_home == o.input_buffer_home &&
      input_buffer_end == o.input_buffer_end &&
      input_select_buffer_home == o.input_select_buffer_home &&
      input_select_buffer_end == o.input_select_buffer_end &&
      input_delete_line == o.input_delete_line &&
      input_delete_to_line_end == o.input_delete_to_line_end &&
      input_delete_to_line_start == o.input_delete_to_line_start &&
      input_backspace == o.input_backspace &&
      input_delete == o.input_delete &&
      input_undo == o.input_undo &&
      input_redo == o.input_redo &&
      input_word_forward == o.input_word_forward &&
      input_word_backward == o.input_word_backward &&
      input_select_word_forward == o.input_select_word_forward &&
      input_select_word_backward == o.input_select_word_backward &&
      input_delete_word_forward == o.input_delete_word_forward &&
      input_delete_word_backward == o.input_delete_word_backward &&
      history_previous == o.history_previous &&
      history_next == o.history_next &&
      session_child_cycle == o.session_child_cycle &&
      session_child_cycle_reverse == o.session_child_cycle_reverse &&
      session_parent == o.session_parent &&
      terminal_suspend == o.terminal_suspend &&
      terminal_title_toggle == o.terminal_title_toggle &&
      tips_toggle == o.tips_toggle
end

#eql?(o) ⇒ Boolean

Parameters:

  • Object (Object)

    to be compared

Returns:

  • (Boolean)

See Also:

  • `==` method


1120
1121
1122
# File 'lib/opencode_client/models/keybinds_config.rb', line 1120

def eql?(o)
  self == o
end

#hashInteger

Calculates hash code according to all attributes.

Returns:

  • (Integer)

    Hash code



1126
1127
1128
# File 'lib/opencode_client/models/keybinds_config.rb', line 1126

def hash
  [leader, app_exit, editor_open, theme_list, sidebar_toggle, scrollbar_toggle, username_toggle, status_view, session_export, session_new, session_list, session_timeline, session_fork, session_rename, session_share, session_unshare, session_interrupt, session_compact, messages_page_up, messages_page_down, messages_half_page_up, messages_half_page_down, messages_first, messages_last, messages_next, messages_previous, messages_last_user, messages_copy, messages_undo, messages_redo, messages_toggle_conceal, tool_details, model_list, model_cycle_recent, model_cycle_recent_reverse, model_cycle_favorite, model_cycle_favorite_reverse, command_list, agent_list, agent_cycle, agent_cycle_reverse, input_clear, input_paste, input_submit, input_newline, input_move_left, input_move_right, input_move_up, input_move_down, input_select_left, input_select_right, input_select_up, input_select_down, input_line_home, input_line_end, input_select_line_home, input_select_line_end, input_visual_line_home, input_visual_line_end, input_select_visual_line_home, input_select_visual_line_end, input_buffer_home, input_buffer_end, input_select_buffer_home, input_select_buffer_end, input_delete_line, input_delete_to_line_end, input_delete_to_line_start, input_backspace, input_delete, input_undo, input_redo, input_word_forward, input_word_backward, input_select_word_forward, input_select_word_backward, input_delete_word_forward, input_delete_word_backward, history_previous, history_next, session_child_cycle, session_child_cycle_reverse, session_parent, terminal_suspend, terminal_title_toggle, tips_toggle].hash
end

#list_invalid_propertiesObject

Show invalid properties with the reasons. Usually used together with valid?

Returns:

  • Array for valid properties with the reasons



1012
1013
1014
1015
1016
# File 'lib/opencode_client/models/keybinds_config.rb', line 1012

def list_invalid_properties
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
  invalid_properties = Array.new
  invalid_properties
end

#to_hashHash

Returns the object in the form of hash

Returns:

  • (Hash)

    Returns the object in the form of hash



1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
# File 'lib/opencode_client/models/keybinds_config.rb', line 1155

def to_hash
  hash = {}
  self.class.attribute_map.each_pair do |attr, param|
    value = self.send(attr)
    if value.nil?
      is_nullable = self.class.openapi_nullable.include?(attr)
      next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
    end

    hash[param] = _to_hash(value)
  end
  hash
end

#valid?Boolean

Check to see if the all the properties in the model are valid

Returns:

  • (Boolean)

    true if the model is valid



1020
1021
1022
1023
# File 'lib/opencode_client/models/keybinds_config.rb', line 1020

def valid?
  warn '[DEPRECATED] the `valid?` method is obsolete'
  true
end