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
Method
new
()
examples/example_chat_list.rs:97
Method
new
()
examples/telegram.rs:106
Method
new_boxed
Create a new boxed instance of the component. # Returns `Box<Self>` - A boxed instance of the component.
src/components/component_traits.rs:109
Method
next
(&mut self)
src/tg/tg_backend.rs:519
Method
offline
(&mut self)
src/tg/tg_backend.rs:271
Method
open_chat_user_status
(&self)
src/tg/tg_context.rs:146
Method
override_fields
Allow the fields of the default configuration to be overridden by the fields of the custom configuration when merging the configurations. Usually, the
src/configs/config_file.rs:191
Method
override_fields
()
src/configs/custom/palette_custom.rs:38
Method
override_fields
()
src/configs/custom/app_custom.rs:49
Method
override_fields
()
src/configs/custom/keymap_custom.rs:334
Method
override_fields
()
src/configs/custom/logger_custom.rs:54
Method
override_fields
()
src/configs/custom/telegram_custom.rs:61
Method
override_fields
()
src/configs/custom/theme_custom.rs:50
Method
palette_config
Get the palette configuration. This function takes the lock on the palette configuration and returns the palette configuration. The palette configurat
src/app_context.rs:169
Method
partial_cmp
(&self, other: &Self)
src/tg/ordered_chat.rs:24
Method
partial_cmp
(&self, other: &Self)
examples/telegram.rs:51
Method
prepare_to_get_chat_history
By default telegram send us only one message the first time
src/tg/tg_backend.rs:121
Method
print_config_file_error
Print the configuration file error. It is used to print the error when the configuration file is not correct. It prints the unrecognized settings. #
src/configs/custom/keymap_custom.rs:101
Function
quit_cli
Quit the cli. # Arguments `tg_backend` - A mutable reference to the TgBackend struct.
src/run.rs:418
Method
register_action_handler
(&mut self, tx: UnboundedSender<Action>)
src/components/status_bar.rs:86
Method
register_action_handler
(&mut self, tx: UnboundedSender<Action>)
src/components/prompt_window.rs:608
Method
register_action_handler
(&mut self, tx: UnboundedSender<Action>)
src/components/chat_list_window.rs:262
Method
register_action_handler
(&mut self, tx: mpsc::UnboundedSender<Action>)
src/components/reply_message.rs:73
Method
register_action_handler
(&mut self, tx: mpsc::UnboundedSender<Action>)
src/components/title_bar.rs:92
Method
register_action_handler
(&mut self, tx: UnboundedSender<Action>)
src/components/chat_window.rs:196
Method
register_action_handler
(&mut self, tx: mpsc::UnboundedSender<Action>)
src/components/component_traits.rs:25
Method
register_action_handler
(&mut self, tx: UnboundedSender<Action>)
src/components/core_window.rs:183
Method
reply_message_id
(&self)
src/tg/tg_context.rs:218
Method
reply_message_text
(&self)
src/tg/tg_context.rs:222
Method
resume
Resume the user interface and start processing events. # Returns `Result<(), io::Error>` - An Ok result or an error.
src/tui_backend.rs:158
Method
search_config_file
Search for a configuration file in the configuration directories. This function searches the configuration directories for the specified file name and
src/configs/config_file.rs:84
Method
send_message
( &mut self, message: String, chat_id: i64, reply_to: Option<TdMessageReplyToM
src/tg/tg_backend.rs:176
Method
set_bg
Set the background color of the `ThemeStyle`. # Arguments `bg` - The background color of the `ThemeStyle`. # Returns `Self` - The modified instance
src/configs/config_theme.rs:27
Method
set_chat_positions
( mut chats_index: MutexGuard<'_, BTreeSet<OrderedChat>>, chat: &mut Chat, positions:
src/tg/tg_backend.rs:464
Method
set_chat_positions
( main_chat_list: Arc<Mutex<BTreeSet<OrderedChat>>>, chat: &mut Chat, positions: Vec<C
examples/telegram.rs:670
Method
set_fg
Set the foreground color of the `ThemeStyle`. # Arguments `fg` - The foreground color of the `ThemeStyle`. # Returns `Self` - The modified instance
src/configs/config_theme.rs:38
Method
str_to_color
Convert a string to a `Color`. # Arguments `s` - The string to convert to a `Color`. # Returns `Result<Color, AppError>` - The converted `Color`.
src/configs/config_theme.rs:70
Method
str_to_color_with_palette
Convert a string to a `Color`. Different from `str_to_color`, this function will try to find the color in the palette first. If the color is not found
src/configs/config_theme.rs:136
Method
supported_formats
Get the supported file formats for the configuration file type. # Returns `&'static [FileFormat]` - The supported file formats.
src/configs/config_type.rs:80
Method
suspend
Suspend the user interface and stop processing events. This will disable the raw mode for the terminal and switch back to the main screen. # Returns
src/tui_backend.rs:148
Function
test_app_config_default
()
src/configs/custom/app_custom.rs:125
Function
test_app_config_from_raw
()
src/configs/custom/app_custom.rs:139
Function
test_app_config_merge
()
src/configs/custom/app_custom.rs:162
Function
test_app_config_override_fields
()
src/configs/custom/app_custom.rs:196
Function
test_get_type
()
src/configs/custom/palette_custom.rs:177
Function
test_get_type
()
src/configs/custom/app_custom.rs:227
Function
test_get_type
()
src/configs/custom/keymap_custom.rs:550
Function
test_get_type
()
src/configs/custom/telegram_custom.rs:386
Function
test_get_type
()
src/configs/custom/theme_custom.rs:435
Function
test_keymap_config_default
()
src/configs/custom/keymap_custom.rs:439
Function
test_keymap_config_from_raw
()
src/configs/custom/keymap_custom.rs:463
Function
test_keymap_config_from_raw_empty
()
src/configs/custom/keymap_custom.rs:448
Function
test_keymap_config_merge
()
src/configs/custom/keymap_custom.rs:484
Function
test_keymap_config_override_fields
()
src/configs/custom/keymap_custom.rs:529
Function
test_logger_config_default
()
src/configs/custom/logger_custom.rs:122
Function
test_logger_config_from_raw
()
src/configs/custom/logger_custom.rs:137
Function
test_logger_config_get_type
()
src/configs/custom/logger_custom.rs:222
Function
test_logger_config_merge
()
src/configs/custom/logger_custom.rs:161
Function
test_logger_config_override_fields
()
src/configs/custom/logger_custom.rs:192
Function
test_merge_all_fields
()
src/configs/custom/app_custom.rs:201
Function
test_merge_all_fields
()
src/configs/custom/keymap_custom.rs:534
Function
test_merge_all_fields
()
src/configs/custom/logger_custom.rs:197
Function
test_merge_all_fields
()
src/configs/custom/telegram_custom.rs:341
Function
test_merge_all_fields
()
src/configs/custom/theme_custom.rs:413
Function
test_override_fields
()
src/configs/custom/palette_custom.rs:172
Function
test_override_fields
()
src/configs/custom/theme_custom.rs:408
Function
test_palette_config_default
()
src/configs/custom/palette_custom.rs:117
Function
test_palette_config_from_raw
()
src/configs/custom/palette_custom.rs:132
Function
test_palette_config_from_raw_empty
()
src/configs/custom/palette_custom.rs:123
Function
test_palette_config_merge
()
src/configs/custom/palette_custom.rs:152
Function
test_telegram_config_default
()
src/configs/custom/telegram_custom.rs:170
Function
test_telegram_config_override_fields
()
src/configs/custom/telegram_custom.rs:336
Function
test_telegram_from_raw
()
src/configs/custom/telegram_custom.rs:177
Function
test_telegram_merge
()
src/configs/custom/telegram_custom.rs:220
Function
test_telegram_merge_none
()
src/configs/custom/telegram_custom.rs:265
Function
test_telegram_merge_partial
()
src/configs/custom/telegram_custom.rs:294
Function
test_theme_config_default
()
src/configs/custom/theme_custom.rs:194
Function
test_theme_config_from_raw
()
src/configs/custom/theme_custom.rs:220
Function
test_theme_config_from_raw_empty
()
src/configs/custom/theme_custom.rs:205
Function
test_theme_config_merge
()
src/configs/custom/theme_custom.rs:284
Function
test_theme_style_as_style
()
src/configs/config_theme.rs:317
Function
test_theme_style_default
()
src/configs/config_theme.rs:336
Function
test_theme_style_from
()
src/configs/config_theme.rs:225
Function
test_theme_style_from_ref
()
src/configs/config_theme.rs:344
Function
test_theme_style_str_to_color
()
src/configs/config_theme.rs:243
Function
test_theme_style_str_to_color_with_palette
()
src/configs/config_theme.rs:280
Method
theme_config
Get the theme configuration. This function takes the lock on the theme configuration and returns the theme configuration. The theme configuration is a
src/app_context.rs:159
Method
timestamp
(&self)
src/tg/message_entry.rs:51
Method
try_name_from_chats_or_users
(&self, user_id: i64)
src/tg/tg_context.rs:192
Method
unfocus
Set the `focused` flag for the `StatusBar`.
src/components/status_bar.rs:79
Method
unfocus
Set the `focused` flag for the `PromptWindow`.
src/components/prompt_window.rs:599
Method
unfocus
Set the `focused` flag for the `ChatListWindow`.
src/components/chat_list_window.rs:255
Method
unfocus
Set the `focused` flag for the `ReplyMessage`.
src/components/reply_message.rs:66
Method
unfocus
Set the `focused` flag for the `TitleBar`.
src/components/title_bar.rs:85
Method
unfocus
Set the `focused` flag for the `ChatWindow`.
src/components/chat_window.rs:189
Function
unwrap_or_fail
Unwrap a result or fail with an error message. This function will unwrap a result and return the value if it is Ok. If the result is an error, this fu
src/utils.rs:58
Method
update
(&mut self, action: Action)
src/components/status_bar.rs:91
Method
update
(&mut self, action: Action)
src/components/prompt_window.rs:614
Method
update
(&mut self, action: Action)
src/components/chat_list_window.rs:267
Method
update
(&mut self, action: Action)
src/components/chat_window.rs:201
← previous
next →
301–400 of 413, ranked by callers