Class: OpencodeClient::KeybindsConfig
- Inherits:
-
ApiModelBase
- Object
- ApiModelBase
- OpencodeClient::KeybindsConfig
- Defined in:
- lib/opencode_client/models/keybinds_config.rb
Overview
Custom keybind configurations
Instance Attribute Summary collapse
-
#agent_cycle ⇒ Object
Next agent.
-
#agent_cycle_reverse ⇒ Object
Previous agent.
-
#agent_list ⇒ Object
List agents.
-
#app_exit ⇒ Object
Exit the application.
-
#command_list ⇒ Object
List available commands.
-
#editor_open ⇒ Object
Open external editor.
-
#history_next ⇒ Object
Next history item.
-
#history_previous ⇒ Object
Previous history item.
-
#input_backspace ⇒ Object
Backspace in input.
-
#input_buffer_end ⇒ Object
Move to end of buffer in input.
-
#input_buffer_home ⇒ Object
Move to start of buffer in input.
-
#input_clear ⇒ Object
Clear input field.
-
#input_delete ⇒ Object
Delete character in input.
-
#input_delete_line ⇒ Object
Delete line in input.
-
#input_delete_to_line_end ⇒ Object
Delete to end of line in input.
-
#input_delete_to_line_start ⇒ Object
Delete to start of line in input.
-
#input_delete_word_backward ⇒ Object
Delete word backward in input.
-
#input_delete_word_forward ⇒ Object
Delete word forward in input.
-
#input_line_end ⇒ Object
Move to end of line in input.
-
#input_line_home ⇒ Object
Move to start of line in input.
-
#input_move_down ⇒ Object
Move cursor down in input.
-
#input_move_left ⇒ Object
Move cursor left in input.
-
#input_move_right ⇒ Object
Move cursor right in input.
-
#input_move_up ⇒ Object
Move cursor up in input.
-
#input_newline ⇒ Object
Insert newline in input.
-
#input_paste ⇒ Object
Paste from clipboard.
-
#input_redo ⇒ Object
Redo in input.
-
#input_select_buffer_end ⇒ Object
Select to end of buffer in input.
-
#input_select_buffer_home ⇒ Object
Select to start of buffer in input.
-
#input_select_down ⇒ Object
Select down in input.
-
#input_select_left ⇒ Object
Select left in input.
-
#input_select_line_end ⇒ Object
Select to end of line in input.
-
#input_select_line_home ⇒ Object
Select to start of line in input.
-
#input_select_right ⇒ Object
Select right in input.
-
#input_select_up ⇒ Object
Select up in input.
-
#input_select_visual_line_end ⇒ Object
Select to end of visual line in input.
-
#input_select_visual_line_home ⇒ Object
Select to start of visual line in input.
-
#input_select_word_backward ⇒ Object
Select word backward in input.
-
#input_select_word_forward ⇒ Object
Select word forward in input.
-
#input_submit ⇒ Object
Submit input.
-
#input_undo ⇒ Object
Undo in input.
-
#input_visual_line_end ⇒ Object
Move to end of visual line in input.
-
#input_visual_line_home ⇒ Object
Move to start of visual line in input.
-
#input_word_backward ⇒ Object
Move word backward in input.
-
#input_word_forward ⇒ Object
Move word forward in input.
-
#leader ⇒ Object
Leader key for keybind combinations.
-
#messages_copy ⇒ Object
Copy message.
-
#messages_first ⇒ Object
Navigate to first message.
-
#messages_half_page_down ⇒ Object
Scroll messages down by half page.
-
#messages_half_page_up ⇒ Object
Scroll messages up by half page.
-
#messages_last ⇒ Object
Navigate to last message.
-
#messages_last_user ⇒ Object
Navigate to last user message.
-
#messages_next ⇒ Object
Navigate to next message.
-
#messages_page_down ⇒ Object
Scroll messages down by one page.
-
#messages_page_up ⇒ Object
Scroll messages up by one page.
-
#messages_previous ⇒ Object
Navigate to previous message.
-
#messages_redo ⇒ Object
Redo message.
-
#messages_toggle_conceal ⇒ Object
Toggle code block concealment in messages.
-
#messages_undo ⇒ Object
Undo message.
-
#model_cycle_favorite ⇒ Object
Next favorite model.
-
#model_cycle_favorite_reverse ⇒ Object
Previous favorite model.
-
#model_cycle_recent ⇒ Object
Next recently used model.
-
#model_cycle_recent_reverse ⇒ Object
Previous recently used model.
-
#model_list ⇒ Object
List available models.
-
#scrollbar_toggle ⇒ Object
Toggle session scrollbar.
-
#session_child_cycle ⇒ Object
Next child session.
-
#session_child_cycle_reverse ⇒ Object
Previous child session.
-
#session_compact ⇒ Object
Compact the session.
-
#session_export ⇒ Object
Export session to editor.
-
#session_fork ⇒ Object
Fork session from message.
-
#session_interrupt ⇒ Object
Interrupt current session.
-
#session_list ⇒ Object
List all sessions.
-
#session_new ⇒ Object
Create a new session.
-
#session_parent ⇒ Object
Go to parent session.
-
#session_rename ⇒ Object
Rename session.
-
#session_share ⇒ Object
Share current session.
-
#session_timeline ⇒ Object
Show session timeline.
-
#session_unshare ⇒ Object
Unshare current session.
-
#sidebar_toggle ⇒ Object
Toggle sidebar.
-
#status_view ⇒ Object
View status.
-
#terminal_suspend ⇒ Object
Suspend terminal.
-
#terminal_title_toggle ⇒ Object
Toggle terminal title.
-
#theme_list ⇒ Object
List available themes.
-
#tips_toggle ⇒ Object
Toggle tips on home screen.
-
#tool_details ⇒ Object
Toggle tool details visibility.
-
#username_toggle ⇒ Object
Toggle username visibility.
Class Method Summary collapse
-
.acceptable_attribute_map ⇒ Object
Returns attribute mapping this model knows about.
-
.acceptable_attributes ⇒ Object
Returns all the JSON keys this model knows about.
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.build_from_hash(attributes) ⇒ Object
Builds the object from hash.
-
.openapi_nullable ⇒ Object
List of attributes with nullable: true.
-
.openapi_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(o) ⇒ Object
Checks equality by comparing each attribute.
- #eql?(o) ⇒ Boolean
-
#hash ⇒ Integer
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ KeybindsConfig
constructor
Initializes the object.
-
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons.
-
#to_hash ⇒ Hash
Returns the object in the form of hash.
-
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid.
Methods inherited from ApiModelBase
_deserialize, #_to_hash, #to_body, #to_s
Constructor Details
#initialize(attributes = {}) ⇒ KeybindsConfig
Initializes the object
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. = attributes[:'sidebar_toggle'] else self. = '<leader>b' end if attributes.key?(:'scrollbar_toggle') self. = attributes[:'scrollbar_toggle'] else self. = '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. = attributes[:'messages_page_up'] else self. = 'pageup' end if attributes.key?(:'messages_page_down') self. = attributes[:'messages_page_down'] else self. = 'pagedown' end if attributes.key?(:'messages_half_page_up') self. = attributes[:'messages_half_page_up'] else self. = 'ctrl+alt+u' end if attributes.key?(:'messages_half_page_down') self. = attributes[:'messages_half_page_down'] else self. = 'ctrl+alt+d' end if attributes.key?(:'messages_first') self. = attributes[:'messages_first'] else self. = 'ctrl+g,home' end if attributes.key?(:'messages_last') self. = attributes[:'messages_last'] else self. = 'ctrl+alt+g,end' end if attributes.key?(:'messages_next') self. = attributes[:'messages_next'] else self. = 'none' end if attributes.key?(:'messages_previous') self. = attributes[:'messages_previous'] else self. = 'none' end if attributes.key?(:'messages_last_user') self. = attributes[:'messages_last_user'] else self. = 'none' end if attributes.key?(:'messages_copy') self. = attributes[:'messages_copy'] else self. = '<leader>y' end if attributes.key?(:'messages_undo') self. = attributes[:'messages_undo'] else self. = '<leader>u' end if attributes.key?(:'messages_redo') self. = attributes[:'messages_redo'] else self. = '<leader>r' end if attributes.key?(:'messages_toggle_conceal') self. = attributes[:'messages_toggle_conceal'] else self. = '<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_cycle ⇒ Object
Next agent
137 138 139 |
# File 'lib/opencode_client/models/keybinds_config.rb', line 137 def agent_cycle @agent_cycle end |
#agent_cycle_reverse ⇒ Object
Previous agent
140 141 142 |
# File 'lib/opencode_client/models/keybinds_config.rb', line 140 def agent_cycle_reverse @agent_cycle_reverse end |
#agent_list ⇒ Object
List agents
134 135 136 |
# File 'lib/opencode_client/models/keybinds_config.rb', line 134 def agent_list @agent_list end |
#app_exit ⇒ Object
Exit the application
23 24 25 |
# File 'lib/opencode_client/models/keybinds_config.rb', line 23 def app_exit @app_exit end |
#command_list ⇒ Object
List available commands
131 132 133 |
# File 'lib/opencode_client/models/keybinds_config.rb', line 131 def command_list @command_list end |
#editor_open ⇒ Object
Open external editor
26 27 28 |
# File 'lib/opencode_client/models/keybinds_config.rb', line 26 def editor_open @editor_open end |
#history_next ⇒ Object
Next history item
257 258 259 |
# File 'lib/opencode_client/models/keybinds_config.rb', line 257 def history_next @history_next end |
#history_previous ⇒ Object
Previous history item
254 255 256 |
# File 'lib/opencode_client/models/keybinds_config.rb', line 254 def history_previous @history_previous end |
#input_backspace ⇒ Object
Backspace in input
224 225 226 |
# File 'lib/opencode_client/models/keybinds_config.rb', line 224 def input_backspace @input_backspace end |
#input_buffer_end ⇒ Object
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_home ⇒ Object
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_clear ⇒ Object
Clear input field
143 144 145 |
# File 'lib/opencode_client/models/keybinds_config.rb', line 143 def input_clear @input_clear end |
#input_delete ⇒ Object
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_line ⇒ Object
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_end ⇒ Object
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_start ⇒ Object
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_backward ⇒ Object
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_forward ⇒ Object
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_end ⇒ Object
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_home ⇒ Object
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_down ⇒ Object
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_left ⇒ Object
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_right ⇒ Object
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_up ⇒ Object
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_newline ⇒ Object
Insert newline in input
152 153 154 |
# File 'lib/opencode_client/models/keybinds_config.rb', line 152 def input_newline @input_newline end |
#input_paste ⇒ Object
Paste from clipboard
146 147 148 |
# File 'lib/opencode_client/models/keybinds_config.rb', line 146 def input_paste @input_paste end |
#input_redo ⇒ Object
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_end ⇒ Object
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_home ⇒ Object
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_down ⇒ Object
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_left ⇒ Object
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_end ⇒ Object
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_home ⇒ Object
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_right ⇒ Object
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_up ⇒ Object
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_end ⇒ Object
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_home ⇒ Object
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_backward ⇒ Object
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_forward ⇒ Object
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_submit ⇒ Object
Submit input
149 150 151 |
# File 'lib/opencode_client/models/keybinds_config.rb', line 149 def input_submit @input_submit end |
#input_undo ⇒ Object
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_end ⇒ Object
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_home ⇒ Object
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_backward ⇒ Object
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_forward ⇒ Object
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 |
#leader ⇒ Object
Leader key for keybind combinations
20 21 22 |
# File 'lib/opencode_client/models/keybinds_config.rb', line 20 def leader @leader end |
#messages_copy ⇒ Object
Copy message
101 102 103 |
# File 'lib/opencode_client/models/keybinds_config.rb', line 101 def end |
#messages_first ⇒ Object
Navigate to first message
86 87 88 |
# File 'lib/opencode_client/models/keybinds_config.rb', line 86 def end |
#messages_half_page_down ⇒ Object
Scroll messages down by half page
83 84 85 |
# File 'lib/opencode_client/models/keybinds_config.rb', line 83 def end |
#messages_half_page_up ⇒ Object
Scroll messages up by half page
80 81 82 |
# File 'lib/opencode_client/models/keybinds_config.rb', line 80 def end |
#messages_last ⇒ Object
Navigate to last message
89 90 91 |
# File 'lib/opencode_client/models/keybinds_config.rb', line 89 def end |
#messages_last_user ⇒ Object
Navigate to last user message
98 99 100 |
# File 'lib/opencode_client/models/keybinds_config.rb', line 98 def end |
#messages_next ⇒ Object
Navigate to next message
92 93 94 |
# File 'lib/opencode_client/models/keybinds_config.rb', line 92 def end |
#messages_page_down ⇒ Object
Scroll messages down by one page
77 78 79 |
# File 'lib/opencode_client/models/keybinds_config.rb', line 77 def end |
#messages_page_up ⇒ Object
Scroll messages up by one page
74 75 76 |
# File 'lib/opencode_client/models/keybinds_config.rb', line 74 def end |
#messages_previous ⇒ Object
Navigate to previous message
95 96 97 |
# File 'lib/opencode_client/models/keybinds_config.rb', line 95 def end |
#messages_redo ⇒ Object
Redo message
107 108 109 |
# File 'lib/opencode_client/models/keybinds_config.rb', line 107 def end |
#messages_toggle_conceal ⇒ Object
Toggle code block concealment in messages
110 111 112 |
# File 'lib/opencode_client/models/keybinds_config.rb', line 110 def end |
#messages_undo ⇒ Object
Undo message
104 105 106 |
# File 'lib/opencode_client/models/keybinds_config.rb', line 104 def end |
#model_cycle_favorite ⇒ Object
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_reverse ⇒ Object
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_recent ⇒ Object
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_reverse ⇒ Object
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_list ⇒ Object
List available models
116 117 118 |
# File 'lib/opencode_client/models/keybinds_config.rb', line 116 def model_list @model_list end |
#scrollbar_toggle ⇒ Object
Toggle session scrollbar
35 36 37 |
# File 'lib/opencode_client/models/keybinds_config.rb', line 35 def end |
#session_child_cycle ⇒ Object
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_reverse ⇒ Object
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_compact ⇒ Object
Compact the session
71 72 73 |
# File 'lib/opencode_client/models/keybinds_config.rb', line 71 def session_compact @session_compact end |
#session_export ⇒ Object
Export session to editor
44 45 46 |
# File 'lib/opencode_client/models/keybinds_config.rb', line 44 def session_export @session_export end |
#session_fork ⇒ Object
Fork session from message
56 57 58 |
# File 'lib/opencode_client/models/keybinds_config.rb', line 56 def session_fork @session_fork end |
#session_interrupt ⇒ Object
Interrupt current session
68 69 70 |
# File 'lib/opencode_client/models/keybinds_config.rb', line 68 def session_interrupt @session_interrupt end |
#session_list ⇒ Object
List all sessions
50 51 52 |
# File 'lib/opencode_client/models/keybinds_config.rb', line 50 def session_list @session_list end |
#session_new ⇒ Object
Create a new session
47 48 49 |
# File 'lib/opencode_client/models/keybinds_config.rb', line 47 def session_new @session_new end |
#session_parent ⇒ Object
Go to parent session
266 267 268 |
# File 'lib/opencode_client/models/keybinds_config.rb', line 266 def session_parent @session_parent end |
#session_rename ⇒ Object
Rename session
59 60 61 |
# File 'lib/opencode_client/models/keybinds_config.rb', line 59 def session_rename @session_rename end |
#session_share ⇒ Object
Share current session
62 63 64 |
# File 'lib/opencode_client/models/keybinds_config.rb', line 62 def session_share @session_share end |
#session_timeline ⇒ Object
Show session timeline
53 54 55 |
# File 'lib/opencode_client/models/keybinds_config.rb', line 53 def session_timeline @session_timeline end |
#session_unshare ⇒ Object
Unshare current session
65 66 67 |
# File 'lib/opencode_client/models/keybinds_config.rb', line 65 def session_unshare @session_unshare end |
#sidebar_toggle ⇒ Object
Toggle sidebar
32 33 34 |
# File 'lib/opencode_client/models/keybinds_config.rb', line 32 def end |
#status_view ⇒ Object
View status
41 42 43 |
# File 'lib/opencode_client/models/keybinds_config.rb', line 41 def status_view @status_view end |
#terminal_suspend ⇒ Object
Suspend terminal
269 270 271 |
# File 'lib/opencode_client/models/keybinds_config.rb', line 269 def terminal_suspend @terminal_suspend end |
#terminal_title_toggle ⇒ Object
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_list ⇒ Object
List available themes
29 30 31 |
# File 'lib/opencode_client/models/keybinds_config.rb', line 29 def theme_list @theme_list end |
#tips_toggle ⇒ Object
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_details ⇒ Object
Toggle tool details visibility
113 114 115 |
# File 'lib/opencode_client/models/keybinds_config.rb', line 113 def tool_details @tool_details end |
#username_toggle ⇒ Object
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_map ⇒ Object
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_attributes ⇒ Object
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_map ⇒ Object
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
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_nullable ⇒ Object
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_types ⇒ Object
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.
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 && == o. && == o. && 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 && == o. && == o. && == o. && == o. && == o. && == o. && == o. && == o. && == o. && == o. && == o. && == o. && == o. && 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
1120 1121 1122 |
# File 'lib/opencode_client/models/keybinds_config.rb', line 1120 def eql?(o) self == o end |
#hash ⇒ Integer
Calculates hash code according to all attributes.
1126 1127 1128 |
# File 'lib/opencode_client/models/keybinds_config.rb', line 1126 def hash [leader, app_exit, editor_open, theme_list, , , username_toggle, status_view, session_export, session_new, session_list, session_timeline, session_fork, session_rename, session_share, session_unshare, session_interrupt, session_compact, , , , , , , , , , , , , , 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_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
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_hash ⇒ 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
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 |