Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/FedericoBruzzone/tgt
/ functions
Functions
413 in github.com/FedericoBruzzone/tgt
⨍
Functions
413
◇
Types & classes
60
↓ 68 callers
Method
insert
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 callers
Method
tg_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 callers
Method
chats
(&self)
src/tg/tg_context.rs:68
↓ 20 callers
Method
action_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 callers
Method
unselect_all
Unselect all the text.
src/components/prompt_window.rs:390
↓ 13 callers
Method
open_chat_messages
(&self)
src/tg/tg_context.rs:86
↓ 12 callers
Method
open_chat_id
(&self)
src/tg/tg_context.rs:83
↓ 11 callers
Method
id
(&self)
src/tg/message_entry.rs:47
↓ 10 callers
Method
as_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 callers
Method
event_tx
(&self)
src/tg/tg_context.rs:89
↓ 8 callers
Function
ask_user
(string: &str)
examples/telegram.rs:840
↓ 7 callers
Method
app_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 callers
Function
ask_user
(string: &str)
src/tg/tg_backend.rs:895
↓ 6 callers
Function
ask_user
(string: &str)
examples/example.rs:19
↓ 6 callers
Function
default_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 callers
Method
next
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 callers
Method
as_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 callers
Method
chats_index
(&self)
src/tg/tg_context.rs:71
↓ 5 callers
Method
draw
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 callers
Method
handle_authorization_state
(&mut self)
src/tg/tg_backend.rs:305
↓ 4 callers
Method
insert
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 callers
Method
merge
(&mut self, other: Option<Self::Raw>)
src/configs/custom/telegram_custom.rs:65
↓ 4 callers
Method
set_chat_name
(&mut self, chat_name: String)
src/components/chat_list_window.rs:54
↓ 4 callers
Method
telegram_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 callers
Function
tgt_dir
Get the project directory. # Returns The project directory.
src/utils.rs:11
↓ 4 callers
Method
users
(&self)
src/tg/tg_context.rs:56
↓ 3 callers
Method
get_lines_styled_with_style
( &self, content_style: Style, wrap_width: i32, )
src/tg/message_entry.rs:237
↓ 3 callers
Method
insert_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 callers
Method
keymap_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 callers
Method
load_chats
(&mut self, chat_list: ChatList, limit: i32)
src/tg/tg_backend.rs:68
↓ 3 callers
Function
log_out
Logout the user from the Telegram backend. # Arguments `tg_backend` - A mutable reference to the TgBackend struct.
src/run.rs:431
↓ 3 callers
Method
me
(&self)
src/tg/tg_context.rs:92
↓ 3 callers
Method
merge
(&mut self, other: Option<Self::Raw>)
src/configs/custom/theme_custom.rs:71
↓ 3 callers
Method
message_content_to_string
(&self)
src/tg/message_entry.rs:62
↓ 3 callers
Method
send_message
Get the send message arguments.
src/cli.rs:50
↓ 3 callers
Method
sender_id
(&self)
src/tg/message_entry.rs:55
↓ 3 callers
Method
set_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 callers
Method
text_to_string
Convert the text of the `Input` struct to a string.
src/components/prompt_window.rs:493
↓ 2 callers
Function
ask_user
(string: &str)
examples/get_me.rs:11
↓ 2 callers
Method
basic_groups
(&self)
src/tg/tg_context.rs:59
↓ 2 callers
Method
cli_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 callers
Method
close
(&self)
src/tg/tg_backend.rs:98
↓ 2 callers
Method
delete_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 callers
Method
enter
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 callers
Method
exit
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 callers
Method
get_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 callers
Method
get_text_styled
(&self, app_context: &AppContext)
src/components/chat_list_window.rs:76
↓ 2 callers
Function
handle_authorization_state
( client_id: i32, mut auth_rx: Receiver<AuthorizationState>, run_flag: Arc<AtomicBool>, )
examples/example.rs:179
↓ 2 callers
Function
handle_authorization_state
( client_id: i32, mut auth_rx: Receiver<AuthorizationState>, run_flag: Arc<AtomicBool>, )
examples/get_me.rs:24
↓ 2 callers
Method
last_read_inbox_message_id
(&self)
src/tg/tg_context.rs:176
↓ 2 callers
Method
merge
(&mut self, other: Option<Self::Raw>)
src/configs/custom/app_custom.rs:53
↓ 2 callers
Method
merge
(&mut self, other: Option<Self::Raw>)
src/configs/custom/keymap_custom.rs:338
↓ 2 callers
Method
merge
(&mut self, other: Option<Self::Raw>)
src/configs/custom/logger_custom.rs:58
↓ 2 callers
Method
move_cursor_down
Move the cursor down.
src/components/prompt_window.rs:199
↓ 2 callers
Method
move_cursor_up
Move the cursor up.
src/components/prompt_window.rs:188
↓ 2 callers
Method
name_from_chats
(&self, chat_id: i64)
src/tg/tg_context.rs:211
↓ 2 callers
Method
open_chat_user
(&self)
src/tg/tg_context.rs:98
↓ 2 callers
Method
paste
Paste text into the `Input` struct. The text is pasted at the current cursor position.
src/components/prompt_window.rs:420
↓ 2 callers
Method
secret_chats
(&self)
src/tg/tg_context.rs:65
↓ 2 callers
Method
set_from_message_id
(&self, from_message_id: i64)
src/tg/tg_context.rs:117
↓ 2 callers
Method
set_online
(&self, online: bool)
src/tg/tg_backend.rs:256
↓ 2 callers
Method
set_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 callers
Method
set_reply_message
This is used to know if a message is being replied to.
src/tg/tg_context.rs:136
↓ 2 callers
Method
supergroups
(&self)
src/tg/tg_context.rs:62
↓ 2 callers
Method
telegram_cli
Get the Telegram CLI arguments.
src/cli.rs:16
↓ 2 callers
Method
unfocus
Set the `focused` flag for the `CoreWindow`.
src/components/core_window.rs:176
↓ 2 callers
Method
update
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 callers
Method
action_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 callers
Method
as_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 callers
Method
backspace
Delete the character before the cursor position.
src/components/prompt_window.rs:145
↓ 1 callers
Method
basic_groups_full_info
(&self)
src/tg/tg_context.rs:77
↓ 1 callers
Method
clear_open_chat_messages
(&self)
src/tg/tg_context.rs:113
↓ 1 callers
Method
cmp
(&self, other: &Self)
src/tg/ordered_chat.rs:30
↓ 1 callers
Method
cmp
(&self, other: &Self)
examples/telegram.rs:57
↓ 1 callers
Method
confirm_selection
Confirm the selection of the chat item in the list.
src/components/chat_list_window.rs:221
↓ 1 callers
Function
consume_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 callers
Method
copy_selected
Copy the selected text of the `Input` struct. The selected text is copied to the clipboard.
src/components/prompt_window.rs:402
↓ 1 callers
Method
copy_selected
Copy the selected message item in the list.
src/components/chat_window.rs:141
↓ 1 callers
Method
cursor_x
Get the cursor x position of the `Input` struct.
src/components/prompt_window.rs:103
↓ 1 callers
Method
cursor_y
Get the cursor y position of the `Input` struct.
src/components/prompt_window.rs:107
↓ 1 callers
Method
decrease_chat_list_size
Decrease the size of the chat list component.
src/components/core_window.rs:154
↓ 1 callers
Method
decrease_size_prompt
Decrease the size of the chat list component.
src/components/core_window.rs:161
↓ 1 callers
Function
default_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 callers
Function
default_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 callers
Function
default_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 callers
Function
default_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 callers
Function
default_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 callers
Function
default_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 callers
Method
delete
Delete the character next to the cursor position.
src/components/prompt_window.rs:165
↓ 1 callers
Method
delete_message
(&self, message_id: i64)
src/tg/tg_context.rs:141
↓ 1 callers
Method
delete_messages
(&self, chat_id: i64, message_ids: Vec<i64>, revoke: bool)
src/tg/tg_backend.rs:232
↓ 1 callers
Method
delete_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 callers
Method
delete_previous_word
Delete the previous word.
src/components/prompt_window.rs:242
↓ 1 callers
Method
disable_animated_emoji
(&mut self, disable: bool)
src/tg/tg_backend.rs:278
↓ 1 callers
Method
edit_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 callers
Method
edit_selected
Edit the selected message item in the list.
src/components/chat_window.rs:151
↓ 1 callers
Function
empty_tgt_folder
()
build.rs:1
↓ 1 callers
Method
enumerate
Get the different types of configuration files that the application can use.
src/configs/config_type.rs:28
↓ 1 callers
Function
fail_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 callers
Method
focus
Set the `focused` flag for the `CoreWindow`.
src/components/core_window.rs:172
next →
1–100 of 413, ranked by callers