MCPcopy Index your code

hub / github.com/FedericoBruzzone/tgt / functions

Functions413 in github.com/FedericoBruzzone/tgt

↓ 68 callersMethodinsert
Add a modifier to the `ThemeStyle`. # Arguments `modifier` - The modifier to add to the `ThemeStyle`. # Returns `Self` - The modified instance of th
src/configs/config_theme.rs:49
↓ 40 callersMethodtg_context
Get the Telegram context. This function returns the Telegram context. The Telegram context is a shared resource and the contained variables are protec
src/app_context.rs:221
↓ 31 callersMethodchats
(&self)
src/tg/tg_context.rs:68
↓ 20 callersMethodaction_tx
Get the action sender. This function takes the lock on the action sender and returns the action sender. The action sender is a shared resource and is
src/app_context.rs:199
↓ 16 callersMethodunselect_all
Unselect all the text.
src/components/prompt_window.rs:390
↓ 13 callersMethodopen_chat_messages
(&self)
src/tg/tg_context.rs:86
↓ 12 callersMethodopen_chat_id
(&self)
src/tg/tg_context.rs:83
↓ 11 callersMethodid
(&self)
src/tg/message_entry.rs:47
↓ 10 callersMethodas_str
Get the file name without the file extension for the configuration file type. # Returns `&'static str` - The file name without the file extension.
src/configs/config_type.rs:43
↓ 9 callersMethodevent_tx
(&self)
src/tg/tg_context.rs:89
↓ 8 callersFunctionask_user
(string: &str)
examples/telegram.rs:840
↓ 7 callersMethodapp_config
Get the application configuration. This function takes the lock on the application configuration and returns the application configuration. The applic
src/app_context.rs:139
↓ 7 callersFunctionask_user
(string: &str)
src/tg/tg_backend.rs:895
↓ 6 callersFunctionask_user
(string: &str)
examples/example.rs:19
↓ 6 callersFunctiondefault_config_file_path_of
Get the default configuration file path of the specified configuration type. It is cross-platform. # Arguments `config_type` - The configuration type
src/configs/custom/mod.rs:18
↓ 6 callersMethodnext
Send an event asynchronously for processing. This will pop from the event queue the first event that is ready and return it. If no event is available,
src/tui_backend.rs:209
↓ 5 callersMethodas_default_filename
Get the default file name for the configuration file type. # Returns `String` - The default file name.
src/configs/config_type.rs:73
↓ 5 callersMethodchats_index
(&self)
src/tg/tg_context.rs:71
↓ 5 callersMethoddraw
Render the user interface to the screen. # Arguments `frame` - A mutable reference to the frame to be rendered. `area` - A rectangular area to render
src/tui.rs:124
↓ 4 callersMethodhandle_authorization_state
(&mut self)
src/tg/tg_backend.rs:305
↓ 4 callersMethodinsert
Insert a character into the `Input` struct. The character is inserted at the current cursor position. If the cursor is at the end of the line, a new l
src/components/prompt_window.rs:120
↓ 4 callersMethodmerge
(&mut self, other: Option<Self::Raw>)
src/configs/custom/telegram_custom.rs:65
↓ 4 callersMethodset_chat_name
(&mut self, chat_name: String)
src/components/chat_list_window.rs:54
↓ 4 callersMethodtelegram_config
Get the Telegram configuration. This function takes the lock on the Telegram configuration and returns the Telegram configuration. The Telegram config
src/app_context.rs:179
↓ 4 callersFunctiontgt_dir
Get the project directory. # Returns The project directory.
src/utils.rs:11
↓ 4 callersMethodusers
(&self)
src/tg/tg_context.rs:56
↓ 3 callersMethodget_lines_styled_with_style
( &self, content_style: Style, wrap_width: i32, )
src/tg/message_entry.rs:237
↓ 3 callersMethodinsert_newline
Insert a newline into the `Input` struct. A newline is inserted at the current cursor position. The text after the cursor position is moved to the nex
src/components/prompt_window.rs:131
↓ 3 callersMethodkeymap_config
Get the keymap configuration. This function takes the lock on the keymap configuration and returns the keymap configuration. The keymap configuration
src/app_context.rs:149
↓ 3 callersMethodload_chats
(&mut self, chat_list: ChatList, limit: i32)
src/tg/tg_backend.rs:68
↓ 3 callersFunctionlog_out
Logout the user from the Telegram backend. # Arguments `tg_backend` - A mutable reference to the TgBackend struct.
src/run.rs:431
↓ 3 callersMethodme
(&self)
src/tg/tg_context.rs:92
↓ 3 callersMethodmerge
(&mut self, other: Option<Self::Raw>)
src/configs/custom/theme_custom.rs:71
↓ 3 callersMethodmessage_content_to_string
(&self)
src/tg/message_entry.rs:62
↓ 3 callersMethodsend_message
Get the send message arguments.
src/cli.rs:50
↓ 3 callersMethodsender_id
(&self)
src/tg/message_entry.rs:55
↓ 3 callersMethodset_prompt_size_to_one_focused
Set the prompt size to one. It is used to set the prompt size to one when the prompt window is focused. Simply, it set the correct prompt size to zero
src/components/prompt_window.rs:283
↓ 3 callersMethodtext_to_string
Convert the text of the `Input` struct to a string.
src/components/prompt_window.rs:493
↓ 2 callersFunctionask_user
(string: &str)
examples/get_me.rs:11
↓ 2 callersMethodbasic_groups
(&self)
src/tg/tg_context.rs:59
↓ 2 callersMethodcli_args
Get the CLI arguments. This function takes the lock on the CLI arguments and returns the CLI arguments. The CLI arguments are a shared resource and ar
src/app_context.rs:228
↓ 2 callersMethodclose
(&self)
src/tg/tg_backend.rs:98
↓ 2 callersMethoddelete_selected
Delete the selected message item in the list. # Arguments `revoke` - A boolean flag indicating whether the message should be revoked or not.
src/components/chat_window.rs:124
↓ 2 callersMethodenter
Enter the user interface and start processing events. This will enable the raw mode for the terminal and switch to the alternate screen. # Returns `R
src/tui_backend.rs:81
↓ 2 callersMethodexit
Exit the user interface and stop processing events. This will disable the raw mode for the terminal and switch back to the main screen. # Returns `Re
src/tui_backend.rs:136
↓ 2 callersMethodget_map_of
Get the keymap configuration of a component. It is used to get the keymap configuration of a component. # Arguments `component_name` - The name of th
src/configs/custom/keymap_custom.rs:310
↓ 2 callersMethodget_text_styled
(&self, app_context: &AppContext)
src/components/chat_list_window.rs:76
↓ 2 callersFunctionhandle_authorization_state
( client_id: i32, mut auth_rx: Receiver<AuthorizationState>, run_flag: Arc<AtomicBool>, )
examples/example.rs:179
↓ 2 callersFunctionhandle_authorization_state
( client_id: i32, mut auth_rx: Receiver<AuthorizationState>, run_flag: Arc<AtomicBool>, )
examples/get_me.rs:24
↓ 2 callersMethodlast_read_inbox_message_id
(&self)
src/tg/tg_context.rs:176
↓ 2 callersMethodmerge
(&mut self, other: Option<Self::Raw>)
src/configs/custom/app_custom.rs:53
↓ 2 callersMethodmerge
(&mut self, other: Option<Self::Raw>)
src/configs/custom/keymap_custom.rs:338
↓ 2 callersMethodmerge
(&mut self, other: Option<Self::Raw>)
src/configs/custom/logger_custom.rs:58
↓ 2 callersMethodmove_cursor_down
Move the cursor down.
src/components/prompt_window.rs:199
↓ 2 callersMethodmove_cursor_up
Move the cursor up.
src/components/prompt_window.rs:188
↓ 2 callersMethodname_from_chats
(&self, chat_id: i64)
src/tg/tg_context.rs:211
↓ 2 callersMethodopen_chat_user
(&self)
src/tg/tg_context.rs:98
↓ 2 callersMethodpaste
Paste text into the `Input` struct. The text is pasted at the current cursor position.
src/components/prompt_window.rs:420
↓ 2 callersMethodsecret_chats
(&self)
src/tg/tg_context.rs:65
↓ 2 callersMethodset_from_message_id
(&self, from_message_id: i64)
src/tg/tg_context.rs:117
↓ 2 callersMethodset_online
(&self, online: bool)
src/tg/tg_backend.rs:256
↓ 2 callersMethodset_prompt_size_to_one
Set the prompt size to one. It is used to set the prompt size to one.
src/components/prompt_window.rs:271
↓ 2 callersMethodset_reply_message
This is used to know if a message is being replied to.
src/tg/tg_context.rs:136
↓ 2 callersMethodsupergroups
(&self)
src/tg/tg_context.rs:62
↓ 2 callersMethodtelegram_cli
Get the Telegram CLI arguments.
src/cli.rs:16
↓ 2 callersMethodunfocus
Set the `focused` flag for the `CoreWindow`.
src/components/core_window.rs:176
↓ 2 callersMethodupdate
Update the state of the component based on a received action. # Arguments `action` - An action that may modify the state of the component.
src/tui.rs:109
↓ 1 callersMethodaction_rx
Get the action receiver. This function takes the lock on the action receiver and returns the action receiver. The action receiver is a shared resource
src/app_context.rs:189
↓ 1 callersMethodas_style
Convert the `ThemeStyle` to a `Style`. It is used in the macro `theme_style!` in order to convert the `ThemeStyle` to a `Style`. The `Style` is used t
src/configs/config_theme.rs:60
↓ 1 callersMethodbackspace
Delete the character before the cursor position.
src/components/prompt_window.rs:145
↓ 1 callersMethodbasic_groups_full_info
(&self)
src/tg/tg_context.rs:77
↓ 1 callersMethodclear_open_chat_messages
(&self)
src/tg/tg_context.rs:113
↓ 1 callersMethodcmp
(&self, other: &Self)
src/tg/ordered_chat.rs:30
↓ 1 callersMethodcmp
(&self, other: &Self)
examples/telegram.rs:57
↓ 1 callersMethodconfirm_selection
Confirm the selection of the chat item in the list.
src/components/chat_list_window.rs:221
↓ 1 callersFunctionconsume_until_single_action
Consume events until a single action is produced. This function is used to consume events until a single action is produced from a map of events to ac
src/run.rs:217
↓ 1 callersMethodcopy_selected
Copy the selected text of the `Input` struct. The selected text is copied to the clipboard.
src/components/prompt_window.rs:402
↓ 1 callersMethodcopy_selected
Copy the selected message item in the list.
src/components/chat_window.rs:141
↓ 1 callersMethodcursor_x
Get the cursor x position of the `Input` struct.
src/components/prompt_window.rs:103
↓ 1 callersMethodcursor_y
Get the cursor y position of the `Input` struct.
src/components/prompt_window.rs:107
↓ 1 callersMethoddecrease_chat_list_size
Decrease the size of the chat list component.
src/components/core_window.rs:154
↓ 1 callersMethoddecrease_size_prompt
Decrease the size of the chat list component.
src/components/core_window.rs:161
↓ 1 callersFunctiondefault_config_app_file_path
Get the default configuration file path for the application. # Returns The default configuration file path for the application.
src/configs/custom/mod.rs:46
↓ 1 callersFunctiondefault_config_keymap_file_path
Get the default configuration file path for the keymap. # Returns The default configuration file path for the keymap.
src/configs/custom/mod.rs:38
↓ 1 callersFunctiondefault_config_logger_file_path
Get the default configuration file path for the logger. # Returns The default configuration file path for the logger.
src/configs/custom/mod.rs:30
↓ 1 callersFunctiondefault_config_palette_file_path
Get the default configuration file path for the palette. # Returns The default configuration file path for the palette.
src/configs/custom/mod.rs:62
↓ 1 callersFunctiondefault_config_telegram_file_path
Get the default configuration file path for the telegram. # Returns The default configuration file path for the telegram.
src/configs/custom/mod.rs:70
↓ 1 callersFunctiondefault_config_theme_file_path
Get the default configuration file path for the theme. # Returns The default configuration file path for the theme.
src/configs/custom/mod.rs:54
↓ 1 callersMethoddelete
Delete the character next to the cursor position.
src/components/prompt_window.rs:165
↓ 1 callersMethoddelete_message
(&self, message_id: i64)
src/tg/tg_context.rs:141
↓ 1 callersMethoddelete_messages
(&self, chat_id: i64, message_ids: Vec<i64>, revoke: bool)
src/tg/tg_backend.rs:232
↓ 1 callersMethoddelete_old_log_files
Deletes old log files from the specified log folder. This function iterates through the log files in the specified log folder, filters out files whos
src/logger.rs:90
↓ 1 callersMethoddelete_previous_word
Delete the previous word.
src/components/prompt_window.rs:242
↓ 1 callersMethoddisable_animated_emoji
(&mut self, disable: bool)
src/tg/tg_backend.rs:278
↓ 1 callersMethodedit_message
Edit a message. # Arguments `message_id` - The message id of the message to edit. `message` - The message to edit.
src/components/prompt_window.rs:434
↓ 1 callersMethodedit_selected
Edit the selected message item in the list.
src/components/chat_window.rs:151
↓ 1 callersFunctionempty_tgt_folder
()
build.rs:1
↓ 1 callersMethodenumerate
Get the different types of configuration files that the application can use.
src/configs/config_type.rs:28
↓ 1 callersFunctionfail_with
Fail with an error message and exit the application. # Arguments `msg` - A string slice that holds the error message. `e` - A generic type that holds
src/utils.rs:43
↓ 1 callersMethodfocus
Set the `focused` flag for the `CoreWindow`.
src/components/core_window.rs:172
next →1–100 of 413, ranked by callers