Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/FedericoBruzzone/tgt
/ functions
Functions
413 in github.com/FedericoBruzzone/tgt
⨍
Functions
413
◇
Types & classes
60
↓ 1 callers
Method
from_message_id
(&self)
src/tg/tg_context.rs:95
↓ 1 callers
Method
get_chat_history
(&mut self, chat_id: i64)
src/tg/tg_backend.rs:129
↓ 1 callers
Method
get_chats_index
(&self)
src/tg/tg_context.rs:233
↓ 1 callers
Function
get_command
(client_id: i32)
examples/example.rs:26
↓ 1 callers
Method
get_command
(&mut self)
examples/telegram.rs:700
↓ 1 callers
Method
get_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 callers
Method
get_me
(&mut self)
src/tg/tg_backend.rs:59
↓ 1 callers
Method
get_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 callers
Function
handle_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 callers
Method
handle_authorization_state
(&mut self)
examples/telegram.rs:533
↓ 1 callers
Function
handle_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 callers
Method
handle_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 callers
Method
handle_key_events
(&mut self, key: Event)
src/components/component_traits.rs:70
↓ 1 callers
Method
handle_mouse_events
(&mut self, mouse: event::MouseEvent)
src/components/component_traits.rs:83
↓ 1 callers
Function
handle_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 callers
Function
handle_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 callers
Function
handle_update
(update: Update, auth_tx: &Sender<AuthorizationState>)
examples/example.rs:93
↓ 1 callers
Function
handle_update
(update: Update, auth_tx: &Sender<AuthorizationState>)
examples/get_me.rs:18
↓ 1 callers
Method
increase_chat_list_size
Increase the size of the chat list component.
src/components/core_window.rs:140
↓ 1 callers
Method
increase_size_prompt
Increase the size of the chat list component.
src/components/core_window.rs:147
↓ 1 callers
Method
init
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 callers
Function
init_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 callers
Method
last_acknowledged_message_id
(&self)
src/tg/tg_context.rs:101
↓ 1 callers
Method
last_read_outbox_message_id
(&self)
src/tg/tg_context.rs:184
↓ 1 callers
Method
log_out
(&mut self)
src/tg/tg_backend.rs:295
↓ 1 callers
Method
logout
Get the logout flag.
src/cli.rs:46
↓ 1 callers
Method
merge
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 callers
Method
merge
(&mut self, other: Option<Self::Raw>)
src/configs/custom/palette_custom.rs:59
↓ 1 callers
Function
move_config_folder_to_home_dottgt
()
build.rs:7
↓ 1 callers
Method
move_cursor_down_and_toggle_selection
Move the cursor down and toggle the selection.
src/components/prompt_window.rs:357
↓ 1 callers
Method
move_cursor_left
Move the cursor to the left.
src/components/prompt_window.rs:176
↓ 1 callers
Method
move_cursor_left_and_toggle_selection
Move the cursor to the left and toggle the selection.
src/components/prompt_window.rs:298
↓ 1 callers
Method
move_cursor_right
Move the cursor to the right.
src/components/prompt_window.rs:182
↓ 1 callers
Method
move_cursor_right_and_toggle_selection
Move the cursor to the right and toggle the selection.
src/components/prompt_window.rs:307
↓ 1 callers
Method
move_cursor_to_end
Move the cursor to the start of the line.
src/components/prompt_window.rs:234
↓ 1 callers
Method
move_cursor_to_next_word
Move the cursor to the next word.
src/components/prompt_window.rs:222
↓ 1 callers
Method
move_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 callers
Method
move_cursor_to_previous_word
Move the cursor to the previous word.
src/components/prompt_window.rs:210
↓ 1 callers
Method
move_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 callers
Method
move_cursor_to_start
Move the cursor to the end of the line.
src/components/prompt_window.rs:238
↓ 1 callers
Method
move_cursor_up_and_toggle_selection
Move the cursor up and toggle the selection.
src/components/prompt_window.rs:348
↓ 1 callers
Method
name_of_open_chat_id
(&self)
src/tg/tg_context.rs:226
↓ 1 callers
Method
next
Select the next chat item in the list.
src/components/chat_list_window.rs:181
↓ 1 callers
Method
next
Select the next message item in the list.
src/components/chat_window.rs:74
↓ 1 callers
Method
next
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 callers
Method
on_tick
Rotate through the event list. This only exists to simulate some kind of "progress"
examples/example_chat_list.rs:159
↓ 1 callers
Method
online
(&mut self)
src/tg/tg_backend.rs:265
↓ 1 callers
Method
previous
Select the previous chat item in the list.
src/components/chat_list_window.rs:203
↓ 1 callers
Method
previous
Select the previous message item in the list.
src/components/chat_window.rs:95
↓ 1 callers
Method
previous
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 callers
Method
quit_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 callers
Method
quit_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 callers
Function
quit_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 callers
Method
register_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 callers
Method
reply_selected
Reply to the selected message item in the list.
src/components/chat_window.rs:168
↓ 1 callers
Method
restore_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 callers
Function
run_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 callers
Function
run_app
( terminal: &mut Terminal<B>, mut app: App, tick_rate: Duration, )
examples/example_chat_list.rs:194
↓ 1 callers
Method
search_chats
( &self, username: String, )
src/tg/tg_backend.rs:85
↓ 1 callers
Method
send_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 callers
Method
send_message_edited
(&self, message_id: i64, message: String)
src/tg/tg_backend.rs:210
↓ 1 callers
Method
set_chat_id
(&mut self, chat_id: i64)
src/components/chat_list_window.rs:51
↓ 1 callers
Method
set_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 callers
Method
set_event_tx
(&self, event_tx: UnboundedSender<Event>)
src/tg/tg_context.rs:131
↓ 1 callers
Method
set_is_edited
(&mut self, is_edited: bool)
src/tg/message_entry.rs:74
↓ 1 callers
Method
set_is_marked_as_unread
(&mut self, is_marked_as_unread: bool)
src/components/chat_list_window.rs:63
↓ 1 callers
Method
set_last_acknowledged_message_id
(&self, message_id: i64)
src/tg/tg_context.rs:126
↓ 1 callers
Method
set_last_message
(&mut self, last_message: MessageEntry)
src/components/chat_list_window.rs:57
↓ 1 callers
Method
set_last_read_inbox_message_id
(&mut self, last_read_inbox_message_id: i64)
src/components/chat_list_window.rs:69
↓ 1 callers
Method
set_last_read_outbox_message_id
(&mut self, last_read_outbox_message_id: i64)
src/components/chat_list_window.rs:72
↓ 1 callers
Method
set_logging
(&self)
src/tg/tg_backend.rs:492
↓ 1 callers
Method
set_logging
(&self)
examples/telegram.rs:814
↓ 1 callers
Method
set_me
(&self, me: i64)
src/tg/tg_context.rs:122
↓ 1 callers
Method
set_message_content
(&mut self, content: &MessageContent)
src/tg/message_entry.rs:70
↓ 1 callers
Method
set_open_chat_id
(&self, chat_id: i64)
src/tg/tg_context.rs:109
↓ 1 callers
Method
set_open_chat_user
(&self, user: Option<User>)
src/tg/tg_context.rs:105
↓ 1 callers
Method
set_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 callers
Method
set_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 callers
Method
set_unread_count
(&mut self, unread_count: i32)
src/components/chat_list_window.rs:66
↓ 1 callers
Method
set_user
(&mut self, user: User)
src/components/chat_list_window.rs:60
↓ 1 callers
Method
start
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 callers
Method
start
(&mut self)
src/tg/tg_backend.rs:523
↓ 1 callers
Method
start
(&mut self)
examples/telegram.rs:162
↓ 1 callers
Method
supergroups_full_info
(&self)
src/tg/tg_context.rs:80
↓ 1 callers
Method
text
Get the text of the `Input` struct.
src/components/prompt_window.rs:111
↓ 1 callers
Function
tgt_config_dir
Get the default configuration directory. # Returns The default configuration directory.
src/utils.rs:31
↓ 1 callers
Method
toggle_chat_list
Toggle the chat list component.
src/components/core_window.rs:136
↓ 1 callers
Method
toggle_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 callers
Method
toggle_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 callers
Method
toggle_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 callers
Method
toggle_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 callers
Function
tokio_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 callers
Function
ui
(f: &mut Frame, app: &mut App)
examples/example_chat_list.rs:224
↓ 1 callers
Method
unread_messages
(&self)
src/tg/tg_context.rs:165
↓ 1 callers
Method
unselect
Unselect the chat item in the list.
src/components/chat_list_window.rs:217
↓ 1 callers
Method
unselect
Unselect the message item in the list.
src/components/chat_window.rs:116
↓ 1 callers
Method
unselect
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 callers
Method
update_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 callers
Method
use_quick_ack
(&self)
src/tg/tg_backend.rs:239
↓ 1 callers
Method
users_full_info
(&self)
src/tg/tg_context.rs:74
← previous
next →
101–200 of 413, ranked by callers