| Server IP : 217.160.0.135 / Your IP : 216.73.217.85 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/lib/python3/dist-packages/IPython/terminal/__pycache__/ |
Upload File : |
�
�@�c�G � � � d Z ddlZddlZddlZddlZddlZddlmZ ddlm Z ddl
mZmZ ddl
mZmZmZmZmZmZmZ ddlmZ ddlmZ dd lmZ dd
lmZmZ ddlm Z e ed� � � � � Z!d
� Z"d� Z#d� Z$d� Z%d� Z&d� Z'd� Z(d� Z)d� Z*d� Z+d� Z,d� Z-e d� � � Z.ded fd�Z/d� Z0ej1 dk rddl2m3Z3 dd l4m5Z5m6Z6m7Z7 e d!� � � Z8dS dS )"zU
Module to define and register Terminal IPython shortcuts with
:mod:`prompt_toolkit`
� N)�Callable)�get_app)�DEFAULT_BUFFER�
SEARCH_BUFFER)� has_focus�
has_selection� Condition�vi_insert_mode�emacs_insert_mode�has_completions�vi_mode)�!display_completions_like_readline)�KeyBindings)�named_commands)� InputMode�ViState)�undocc �j � t � � j j j } | p| � � � S �N)r �current_buffer�document�current_line_before_cursor�isspace)�befores �</usr/lib/python3/dist-packages/IPython/terminal/shortcuts.py�cursor_in_leading_wsr s- � � �Y�Y�
%�
.�
I�F��J�+�6�>�>�+�+�+� c �4 � | j }|j }|j |j d� }|� d� � }|d � � � }|j }|�)|j r"|dk r|� |j � � dS t j | � � dS )z1
Apply autosuggestion if at end of line.
N�
r � )
r r �text�cursor_position�split�strip�
suggestion�insert_text�nc�end_of_line)�event�b�d�after_cursor�lines�end_of_current_liner% s r �_apply_autosuggestr/ $ s� � � ��A� �
�A��6�!�+�-�-�.�L����t�$�$�E���(�.�.�*�*����J���Z�_��;N�RT�;T�;T� �
�
�j�o�&�&�&�&�&�
��u�����r c � � ��� t � � }t t z }t � dd� � r� � � � � }nt � � � } |� dt t � � t z |z �� � |� � � fd�} |� ddt t � � t z |z �� � |� � |� d� � t � � |� dt t t � � z �� � t � � |� d t t t � � z �� � t � � |� d
t t � � t z �� � t � � |� dt t � � �� � t � � |� dt t � � �� � t"