Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/prompt_toolkit/key_binding/bindings/__pycache__/emacs.cpython-39.pyc
Ðазад
a d�h�L � @ s d dl mZ d dlmZ d dlmZmZmZ d dlm Z d dl mZmZm Z mZmZmZmZmZmZmZ d dlmZ d dlmZ d dlmZ d d lmZ d dlmZmZm Z dd l!m"Z" g d�Z#eZ$edd�dd��Z%edd�dd��Z&dd�dd�Z'dd�dd�Z(dd�dd�Z)dS )� )�annotations)�get_app)�Buffer�indent�unindent)� CompleteEvent) � Condition�emacs_insert_mode� emacs_mode�has_arg� has_selection� in_paste_mode�is_multiline�is_read_only�shift_selection_mode�vi_search_direction_reversed)�Binding)� KeyPressEvent)�Keys)� SelectionType� )�ConditionalKeyBindings�KeyBindings�KeyBindingsBase� )�get_by_name)�load_emacs_bindings�load_emacs_search_bindings�#load_emacs_shift_selection_bindings�bool)�returnc C s t � jjS �N)r �current_buffer� is_returnable� r$ r$ ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/prompt_toolkit/key_binding/bindings/emacs.pyr# $ s r# c C s t � jjdkS )N�-)r � key_processor�argr$ r$ r$ r% �is_arg) s r) r c s� t � } | j�t}�d�ddd�dd��}�d�td�� �d �td �� �d|d�td �� �d�td�� �d�td�� �d�td�� �d�td�� �ddd|d�td�� �d|d�td�� �dd�td�� �dd|d�td�� �dd|d�td �� �dd�td�� �dd |d�td!�� �dd"|d�td#�� �dd|d�td$�� �dd%|d�td&�� �dd'|d�td(�� �d)�td*�� �d+�td,�� �d-d.d/� |d0�td1�� �dd2d3d/� |d0�td1�� �dd4t d�td5�� �dd6t d�td7�� �dd8|d�td9�� �dd:|d�td9�� �dd|d�td;�� �dd<|d�td=�� �d>�td?�� �d@t d�tdA�� �ddB�tdC�� �ddD�tdE�� �ddF�tdG�� �dH�ddd�dIdJ��}�dK�ddd�dLdM��}dNddO��fdPdQ�}dRD ]}||� �q�ddSt d�ddd�dTdU��}�dStd�ddd�dVdW��}�ddX|t@ d�tdY�� �dX|t@ t @ d�tdY�� dZdNd[dd\�d]d^�� �d_t j �ddd�� fd`da��} �dd_t j �ddd�� fdbdc��} �ddd�ddd�dedf��}�ddF�ddd�dgdh��}�ddi|d�ddd�djdk��} �ddl|d�ddd�dmdn��}�dd�ddd�dodp��}�dq�ddd�drds��}�dtt d�ddd�dudv��}�dttd�ddd�dwdx��}�dytd��dddztd�ddd�d{d|���}�dd}td�ddd�d~d��}�dd��ddd�d�d���}�dd��ddd�d�d���}�dd�|d�ddd�d�d���}�d�d6td�ddd�d�d���}�d�d4td�ddd�d�d���}t| t�S )�z! Some e-macs extensions. �escape�E�None��eventr c S s dS )a\ By default, ignore escape key. (If we don't put this here, and Esc is followed by a key which sequence is not handled, we'll insert an Escape character in the input stream. Something we don't want and happens to easily in emacs mode. Further, people can always use ControlQ to do a quoted insert.) Nr$ �r. r$ r$ r% �_esc9 s z!load_emacs_bindings.<locals>._esczc-a�beginning-of-linezc-b� backward-charzc-delete��filterz kill-wordzc-e�end-of-linezc-f�forward-char�c-left� backward-word�c-right�forward-wordzc-x�r�y�yank�c-y�b�czcapitalize-word�d�f�lz downcase-word�uzuppercase-wordzyank-pop� backspacezbackward-kill-word�\zdelete-horizontal-space�c-home�beginning-of-buffer�c-end� end-of-bufferzc-_c S s dS �NFr$ ��er$ r$ r% �<lambda>[ � z%load_emacs_bindings.<locals>.<lambda>)Zsave_beforer4 Zundozc-uc S s dS rK r$ rL r$ r$ r% rN _ rO �<zbeginning-of-history�>zend-of-history�.z yank-last-arg�_zyank-nth-arg�#zinsert-commentzc-ozoperate-and-get-nextzc-qz quoted-insert�(zstart-kbd-macro�)z end-kbd-macrorM zcall-last-kbd-macrozc-nc S s | j �� dS )z Next line.N)r"