MCPcopy Create free account

hub / github.com/FedericoBruzzone/tgt / functions

Functions413 in github.com/FedericoBruzzone/tgt

↓ 1 callersMethodfrom_message_id
(&self)
src/tg/tg_context.rs:95
↓ 1 callersMethodget_chat_history
(&mut self, chat_id: i64)
src/tg/tg_backend.rs:129
↓ 1 callersMethodget_chats_index
(&self)
src/tg/tg_context.rs:233
↓ 1 callersFunctionget_command
(client_id: i32)
examples/example.rs:26
↓ 1 callersMethodget_command
(&mut self)
examples/telegram.rs:700
↓ 1 callersMethodget_key_of_single_action
Get the keys associated with an action. # Arguments `map` - A hashmap of event and action binding. `value` - An action. # Returns A vector of events
src/configs/custom/keymap_custom.rs:78
↓ 1 callersMethodget_me
(&mut self)
src/tg/tg_backend.rs:59
↓ 1 callersMethodget_supported_formats
Get the supported file formats for the configuration file type. The supported file formats are: Json5 Json Yaml Toml Ini Ron # Returns `&'static [Fil
src/configs/config_type.rs:102
↓ 1 callersFunctionhandle_app_actions
Handle incoming actions from the application. # Arguments `app_context` - An Arc wrapped AppContext struct. `tui` - A mutable reference to the Tui st
src/run.rs:246
↓ 1 callersMethodhandle_authorization_state
(&mut self)
examples/telegram.rs:533
↓ 1 callersFunctionhandle_cli
Handle the command line arguments. This function will handle the command line arguments. # Arguments `app_context` - An Arc wrapped AppContext struct
src/run.rs:335
↓ 1 callersMethodhandle_events
Handle incoming events and produce actions if necessary. # Arguments `event` - An optional event to be processed. # Returns `Result<Option<Action>>
src/tui.rs:95
↓ 1 callersMethodhandle_key_events
(&mut self, key: Event)
src/components/component_traits.rs:70
↓ 1 callersMethodhandle_mouse_events
(&mut self, mouse: event::MouseEvent)
src/components/component_traits.rs:83
↓ 1 callersFunctionhandle_tg_backend_events
Handle incoming events from the Telegram backend and produce actions if necessary. # Arguments `app_context` - An Arc wrapped AppContext struct. `tg_
src/run.rs:83
↓ 1 callersFunctionhandle_tui_backend_events
Handle incoming events from the TUI backend and produce actions if necessary. # Arguments `app_context` - An Arc wrapped AppContext struct. `tui` - A
src/run.rs:152
↓ 1 callersFunctionhandle_update
(update: Update, auth_tx: &Sender<AuthorizationState>)
examples/example.rs:93
↓ 1 callersFunctionhandle_update
(update: Update, auth_tx: &Sender<AuthorizationState>)
examples/get_me.rs:18
↓ 1 callersMethodincrease_chat_list_size
Increase the size of the chat list component.
src/components/core_window.rs:140
↓ 1 callersMethodincrease_size_prompt
Increase the size of the chat list component.
src/components/core_window.rs:147
↓ 1 callersMethodinit
Initialize the logger. This function initializes the logger for the application. The logger is initialized with the following layers: - a file subscri
src/logger.rs:54
↓ 1 callersFunctioninit_panic_hook
Initialize the panic hook to exit the `TuiBackend` and log the panic stack backtrace. # Arguments `mouse` - A boolean flag that represents whether th
src/main.rs:138
↓ 1 callersMethodlast_acknowledged_message_id
(&self)
src/tg/tg_context.rs:101
↓ 1 callersMethodlast_read_outbox_message_id
(&self)
src/tg/tg_context.rs:184
↓ 1 callersMethodlog_out
(&mut self)
src/tg/tg_backend.rs:295
↓ 1 callersMethodlogout
Get the logout flag.
src/cli.rs:46
↓ 1 callersMethodmerge
Merge the configuration with another configuration. If the other configuration is `None`, the current configuration is returned. This function is used
src/configs/config_file.rs:180
↓ 1 callersMethodmerge
(&mut self, other: Option<Self::Raw>)
src/configs/custom/palette_custom.rs:59
↓ 1 callersFunctionmove_config_folder_to_home_dottgt
()
build.rs:7
↓ 1 callersMethodmove_cursor_down_and_toggle_selection
Move the cursor down and toggle the selection.
src/components/prompt_window.rs:357
↓ 1 callersMethodmove_cursor_left
Move the cursor to the left.
src/components/prompt_window.rs:176
↓ 1 callersMethodmove_cursor_left_and_toggle_selection
Move the cursor to the left and toggle the selection.
src/components/prompt_window.rs:298
↓ 1 callersMethodmove_cursor_right
Move the cursor to the right.
src/components/prompt_window.rs:182
↓ 1 callersMethodmove_cursor_right_and_toggle_selection
Move the cursor to the right and toggle the selection.
src/components/prompt_window.rs:307
↓ 1 callersMethodmove_cursor_to_end
Move the cursor to the start of the line.
src/components/prompt_window.rs:234
↓ 1 callersMethodmove_cursor_to_next_word
Move the cursor to the next word.
src/components/prompt_window.rs:222
↓ 1 callersMethodmove_cursor_to_next_word_and_toggle_selection
Move the cursor to the next word and toggle the selection.
src/components/prompt_window.rs:332
↓ 1 callersMethodmove_cursor_to_previous_word
Move the cursor to the previous word.
src/components/prompt_window.rs:210
↓ 1 callersMethodmove_cursor_to_previous_word_and_toggle_selection
Move the cursor to the previous word and toggle the selection.
src/components/prompt_window.rs:316
↓ 1 callersMethodmove_cursor_to_start
Move the cursor to the end of the line.
src/components/prompt_window.rs:238
↓ 1 callersMethodmove_cursor_up_and_toggle_selection
Move the cursor up and toggle the selection.
src/components/prompt_window.rs:348
↓ 1 callersMethodname_of_open_chat_id
(&self)
src/tg/tg_context.rs:226
↓ 1 callersMethodnext
Select the next chat item in the list.
src/components/chat_list_window.rs:181
↓ 1 callersMethodnext
Select the next message item in the list.
src/components/chat_window.rs:74
↓ 1 callersMethodnext
Select the next item in the list. This will select the next item in the list. If the last item is already selected, the first item will be selected.
examples/example_chat_list.rs:42
↓ 1 callersMethodon_tick
Rotate through the event list. This only exists to simulate some kind of "progress"
examples/example_chat_list.rs:159
↓ 1 callersMethodonline
(&mut self)
src/tg/tg_backend.rs:265
↓ 1 callersMethodprevious
Select the previous chat item in the list.
src/components/chat_list_window.rs:203
↓ 1 callersMethodprevious
Select the previous message item in the list.
src/components/chat_window.rs:95
↓ 1 callersMethodprevious
Select the previous item in the list. This will select the previous item in the list. If the first item is already selected, the last item will be se
examples/example_chat_list.rs:60
↓ 1 callersMethodquit_acquire
Get the quit flag. This function returns the value of the quit flag. The quit flag is a shared resource and is protected by an atomic boolean. # Retu
src/app_context.rs:208
↓ 1 callersMethodquit_store
Set the quit flag. This function sets the value of the quit flag. The quit flag is a shared resource and is protected by an atomic boolean.
src/app_context.rs:214
↓ 1 callersFunctionquit_tui
Quit the tui. # Arguments `tg_backend` - A mutable reference to the TgBackend struct. `tui_backend` - A mutable reference to the TuiBackend struct.
src/run.rs:403
↓ 1 callersMethodregister_action_handler
Register an action handler that can send actions for processing if necessary. # Arguments `tx` - An unbounded sender that can send actions. # Return
src/tui.rs:77
↓ 1 callersMethodreply_selected
Reply to the selected message item in the list.
src/components/chat_window.rs:168
↓ 1 callersMethodrestore_prompt_size
Restore the prompt size of the `Input` struct. It is used to restore the prompt size to the correct prompt size when the prompt window is focused. It
src/components/prompt_window.rs:259
↓ 1 callersFunctionrun_app
Run the main event loop for the application. This function will process events and actions for the tui and the backend. # Arguments `app_context` - A
src/run.rs:23
↓ 1 callersFunctionrun_app
( terminal: &mut Terminal<B>, mut app: App, tick_rate: Duration, )
examples/example_chat_list.rs:194
↓ 1 callersMethodsearch_chats
( &self, username: String, )
src/tg/tg_backend.rs:85
↓ 1 callersMethodsend_message
Send a message. The message is sent to the main event loop for processing. # Arguments `app_context` - An Arc wrapped AppContext struct.
src/components/prompt_window.rs:457
↓ 1 callersMethodsend_message_edited
(&self, message_id: i64, message: String)
src/tg/tg_backend.rs:210
↓ 1 callersMethodset_chat_id
(&mut self, chat_id: i64)
src/components/chat_list_window.rs:51
↓ 1 callersMethodset_command_tx
Set the command sender of the `Input` struct. # Arguments `command_tx` - An unbounded sender that send action for processing.
src/components/prompt_window.rs:99
↓ 1 callersMethodset_event_tx
(&self, event_tx: UnboundedSender<Event>)
src/tg/tg_context.rs:131
↓ 1 callersMethodset_is_edited
(&mut self, is_edited: bool)
src/tg/message_entry.rs:74
↓ 1 callersMethodset_is_marked_as_unread
(&mut self, is_marked_as_unread: bool)
src/components/chat_list_window.rs:63
↓ 1 callersMethodset_last_acknowledged_message_id
(&self, message_id: i64)
src/tg/tg_context.rs:126
↓ 1 callersMethodset_last_message
(&mut self, last_message: MessageEntry)
src/components/chat_list_window.rs:57
↓ 1 callersMethodset_last_read_inbox_message_id
(&mut self, last_read_inbox_message_id: i64)
src/components/chat_list_window.rs:69
↓ 1 callersMethodset_last_read_outbox_message_id
(&mut self, last_read_outbox_message_id: i64)
src/components/chat_list_window.rs:72
↓ 1 callersMethodset_logging
(&self)
src/tg/tg_backend.rs:492
↓ 1 callersMethodset_logging
(&self)
examples/telegram.rs:814
↓ 1 callersMethodset_me
(&self, me: i64)
src/tg/tg_context.rs:122
↓ 1 callersMethodset_message_content
(&mut self, content: &MessageContent)
src/tg/message_entry.rs:70
↓ 1 callersMethodset_open_chat_id
(&self, chat_id: i64)
src/tg/tg_context.rs:109
↓ 1 callersMethodset_open_chat_user
(&self, user: Option<User>)
src/tg/tg_context.rs:105
↓ 1 callersMethodset_prompt_size_to_one_unfocused
Set the prompt size to one. It is used to set the prompt size to one when the prompt window is unfocused. It means that when the prompt window will re
src/components/prompt_window.rs:293
↓ 1 callersMethodset_rust_log_variable
Set the `RUST_LOG` environment variable. This function try to set the `RUST_LOG` environment variable to: - the value of the `RUST_LOG` environment v
src/logger.rs:116
↓ 1 callersMethodset_unread_count
(&mut self, unread_count: i32)
src/components/chat_list_window.rs:66
↓ 1 callersMethodset_user
(&mut self, user: User)
src/components/chat_list_window.rs:60
↓ 1 callersMethodstart
Start processing events asynchronously. This will spawn a new task that will process events. The task will listen for events from the terminal and sen
src/tui_backend.rs:216
↓ 1 callersMethodstart
(&mut self)
src/tg/tg_backend.rs:523
↓ 1 callersMethodstart
(&mut self)
examples/telegram.rs:162
↓ 1 callersMethodsupergroups_full_info
(&self)
src/tg/tg_context.rs:80
↓ 1 callersMethodtext
Get the text of the `Input` struct.
src/components/prompt_window.rs:111
↓ 1 callersFunctiontgt_config_dir
Get the default configuration directory. # Returns The default configuration directory.
src/utils.rs:31
↓ 1 callersMethodtoggle_chat_list
Toggle the chat list component.
src/components/core_window.rs:136
↓ 1 callersMethodtoggle_selection_from_cursor_to_end_of_line
Toggle the selection from the cursor to the end of the line.
src/components/prompt_window.rs:372
↓ 1 callersMethodtoggle_selection_from_cursor_to_start_of_line
Toggle the selection from the cursor to the start of the line.
src/components/prompt_window.rs:366
↓ 1 callersMethodtoggle_selection_from_end_of_line_to_cursor
Toggle the selection from the end of the line to the cursor.
src/components/prompt_window.rs:384
↓ 1 callersMethodtoggle_selection_from_start_of_line_to_cursor
Toggle the selection from the start of the line to the cursor.
src/components/prompt_window.rs:378
↓ 1 callersFunctiontokio_main
The main entry point for the application. This function initializes the application and runs the main event loop. # Returns `Result<(), AppError>` -
src/main.rs:51
↓ 1 callersFunctionui
(f: &mut Frame, app: &mut App)
examples/example_chat_list.rs:224
↓ 1 callersMethodunread_messages
(&self)
src/tg/tg_context.rs:165
↓ 1 callersMethodunselect
Unselect the chat item in the list.
src/components/chat_list_window.rs:217
↓ 1 callersMethodunselect
Unselect the message item in the list.
src/components/chat_window.rs:116
↓ 1 callersMethodunselect
Unselect the currently selected item. This will unselect the currently selected item. If no item is selected, nothing will happen.
examples/example_chat_list.rs:78
↓ 1 callersMethodupdate_input
Update the input area of the `PromptWindow`. It is used to update the input area of the `PromptWindow` when a new line is inserted or deleted. # Argu
src/components/prompt_window.rs:584
↓ 1 callersMethoduse_quick_ack
(&self)
src/tg/tg_backend.rs:239
↓ 1 callersMethodusers_full_info
(&self)
src/tg/tg_context.rs:74
← previousnext →101–200 of 413, ranked by callers