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
view_all_messages
(&self)
src/tg/tg_backend.rs:105
↓ 1 callers
Method
with_small_area
Set small area flag. # Arguments `small_area` - A flag indicating whether the `CoreWindow` should be displayed as a
src/components/core_window.rs:131
Method
check_duplicates
Check for duplicates in the keymaps. It is used to check for duplicates in the keymaps. If a keymap entry is present in multiple keymaps, it is consid
src/configs/custom/keymap_custom.rs:279
Method
convert_time
(timestamp: i32)
src/tg/message_entry.rs:16
Method
default
()
src/configs/config_theme.rs:196
Method
default
()
src/configs/custom/palette_custom.rs:77
Method
default
()
src/configs/custom/app_custom.rs:96
Method
default
()
src/configs/custom/keymap_custom.rs:399
Method
default
()
src/configs/custom/logger_custom.rs:88
Method
default
()
src/configs/custom/telegram_custom.rs:117
Method
default
()
src/configs/custom/theme_custom.rs:118
Method
default
()
src/components/prompt_window.rs:508
Method
default
()
src/components/chat_list_window.rs:33
Method
default_format
Get the default file extension for the configuration file type. The default file extension is `.toml`. # Returns `&'static str` - The default file ex
src/configs/config_type.rs:59
Method
default_result
Get the default palette configuration. # Returns `Result<Self>` - The default palette configuration.
src/configs/custom/palette_custom.rs:24
Method
default_result
Get the default application configuration. # Returns The default application configuration.
src/configs/custom/app_custom.rs:35
Method
default_result
Get the default keymap configuration. # Returns The default keymap configuration.
src/configs/custom/keymap_custom.rs:65
Method
default_result
Get the default logger configuration. # Returns The default logger configuration.
src/configs/custom/logger_custom.rs:40
Method
default_result
Get the default telegram configuration. # Returns The default telegram configuration.
src/configs/custom/telegram_custom.rs:47
Method
default_result
Get the default theme configuration. # Returns `Result<Self>` - The default theme configuration.
src/configs/custom/theme_custom.rs:37
Method
deserialize_config_or_default
Deserialize a configuration file into a configuration struct or return the default configuration. This function searches the configuration directories
src/configs/config_file.rs:140
Method
deserialize_custom_config
Deserialize a custom configuration file into a configuration struct. This function searches the configuration directories for the specified file name
src/configs/config_file.rs:103
Function
deserialize_to_config
Deserialize a configuration file into a configuration struct. This function attempts to parse the specified file and returns the parsed configuration.
src/configs/mod.rs:24
Function
deserialize_to_config_into
Deserialize a configuration file into a configuration struct and convert it into another configuration struct. This function attempts to parse the spe
src/configs/mod.rs:44
Method
draw
(&mut self, frame: &mut ratatui::Frame<'_>, area: Rect)
src/components/status_bar.rs:101
Method
draw
(&mut self, frame: &mut Frame<'_>, area: Rect)
src/components/prompt_window.rs:799
Method
draw
(&mut self, frame: &mut Frame<'_>, area: Rect)
src/components/chat_list_window.rs:277
Method
draw
(&mut self, frame: &mut ratatui::Frame<'_>, area: Rect)
src/components/reply_message.rs:78
Method
draw
(&mut self, frame: &mut ratatui::Frame<'_>, area: Rect)
src/components/title_bar.rs:97
Method
draw
(&mut self, frame: &mut ratatui::Frame<'_>, area: Rect)
src/components/chat_window.rs:215
Method
draw
(&mut self, frame: &mut ratatui::Frame<'_>, area: Rect)
src/components/core_window.rs:269
Method
event_with_modifiers
Create an event with a key code and modifiers. # Arguments `s` - A string that represents the key code. `modifiers` - A `KeyModifiers` struct that re
src/event.rs:71
Method
fmt
(&self, f: &mut Formatter<'_>)
src/event.rs:144
Method
fmt
(&self, f: &mut Formatter)
src/component_name.rs:24
Method
fmt
(&self, f: &mut std::fmt::Formatter)
src/app_error.rs:46
Method
fmt
(&self, f: &mut Formatter<'_>)
src/configs/config_type.rs:116
Method
focus
Set the `focused` flag for the `StatusBar`.
src/components/status_bar.rs:75
Method
focus
Set the `focused` flag for the `PromptWindow`.
src/components/prompt_window.rs:595
Method
focus
Set the `focused` flag for the `ChatListWindow`.
src/components/chat_list_window.rs:251
Method
focus
Set the `focused` flag for the `ReplyMessage`.
src/components/reply_message.rs:62
Method
focus
Set the `focused` flag for the `TitleBar`.
src/components/title_bar.rs:81
Method
focus
Set the `focused` flag for the `ChatWindow`.
src/components/chat_window.rs:185
Method
force_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. # Arguments `
src/tui_backend.rs:115
Method
format_message_content
(message: &FormattedText)
src/tg/message_entry.rs:284
Method
from
(config: LoggerConfig)
src/logger.rs:127
Method
from
(modifiers: KeyModifiers)
src/action.rs:32
Method
from
(error: io::Error)
src/app_error.rs:31
Method
from
(entry: ThemeEntry)
src/configs/config_theme.rs:151
Method
from
(raw: PaletteRaw)
src/configs/custom/palette_custom.rs:84
Method
from
(raw: AppRaw)
src/configs/custom/app_custom.rs:103
Method
from
(raw: KeymapRaw)
src/configs/custom/keymap_custom.rs:406
Method
from
(raw: LoggerRaw)
src/configs/custom/logger_custom.rs:95
Method
from
(raw: TelegramRaw)
src/configs/custom/telegram_custom.rs:124
Method
from
(raw: ThemeRaw)
src/configs/custom/theme_custom.rs:124
Method
from
(message: &tdlib_rs::types::Message)
src/tg/message_entry.rs:415
Method
from
(reply_to_message: &TdMessageReplyToMessage)
src/tg/td_enums.rs:33
Method
from_config
Create a new logger from the logger configuration. # Arguments `logger_config` - The logger configuration. # Returns The new logger.
src/logger.rs:35
Method
from_key_event
Create an action from a key event. # Arguments `key` - A `KeyCode` that represents the key code. `modifiers` - A `KeyModifiers` struct that represent
src/action.rs:179
Method
from_span_to_lines
(span: Span)
src/tg/message_entry.rs:207
Method
from_spans_to_lines
(spans: Vec<Span>)
src/tg/message_entry.rs:214
Method
from_str
(s: &str)
src/action.rs:188
Method
from_str
(s: &str)
src/event.rs:119
Method
get_config
Get the configuration of the specified type. # Returns The configuration of the specified type.
src/configs/config_file.rs:60
Method
get_config
We need to override the default implementation of the get_config function to use the theme_filename from the app config. The default value of theme_fi
src/configs/custom/palette_custom.rs:45
Method
get_config
We need to override the default implementation of the get_config function to use the theme_filename from the app config. The default value of theme_fi
src/configs/custom/theme_custom.rs:57
Method
get_span_styled
(&self, app_context: &AppContext)
src/tg/message_entry.rs:28
Method
get_text_styled
( &self, myself: bool, app_context: &AppContext, is_unread: bool, // When myse
src/tg/message_entry.rs:78
Method
get_type
()
src/configs/custom/palette_custom.rs:34
Method
get_type
()
src/configs/custom/app_custom.rs:45
Method
get_type
()
src/configs/custom/keymap_custom.rs:330
Method
get_type
()
src/configs/custom/logger_custom.rs:50
Method
get_type
()
src/configs/custom/telegram_custom.rs:57
Method
get_type
()
src/configs/custom/theme_custom.rs:47
Method
handle_events
Handle incoming events and produce actions if necessary. # Arguments `event` - An optional event to be processed. # Returns `Result<Option<Action>
src/components/component_traits.rs:50
Method
handle_events
(&mut self, event: Option<Event>)
src/components/core_window.rs:191
Method
hash
(&self, state: &mut H)
src/tg/ordered_chat.rs:10
Method
hash
(&self, state: &mut H)
examples/telegram.rs:37
Method
init
(&mut self, area: layout::Rect)
src/components/component_traits.rs:38
Method
insert_keymap
Insert a keymap entry into the keymap hashmap. It is used to insert a keymap entry into the keymap hashmap. It is recursive and it is used to insert a
src/configs/custom/keymap_custom.rs:209
Method
keymaps_vec_to_map
Convert a vector of keymap entries to a hashmap of event and action binding. When the keymap entries are read from the default configuration file, the
src/configs/custom/keymap_custom.rs:124
Method
load_all_chats
(&mut self)
src/tg/tg_backend.rs:79
Function
main
()
build.rs:21
Function
main
()
src/main.rs:150
Function
main
()
examples/example_chat_list.rs:165
Function
main
()
examples/telegram.rs:848
Function
main
()
examples/example.rs:291
Function
main
()
examples/get_me.rs:108
Method
merge_two_style
(a: Style, b: Style)
src/tg/message_entry.rs:227
Method
message_content_lines
(content: &MessageContent)
src/tg/message_entry.rs:193
Method
new
Create a new instance of the `TuiBackend` struct. # Arguments `app_context` - An Arc wrapped AppContext struct. # Returns `Result<Self, io::Error>` -
src/tui_backend.rs:56
Method
new
Create a new instance of the `App` struct. # Arguments `app_config` - The application configuration. `keymap_config` - The keymap configuration. `the
src/app_context.rs:107
Method
new
Create a new instance of the `Tui` struct. # Arguments `app_context` - An Arc wrapped AppContext struct. # Returns `Self` - The new instance of the
src/tui.rs:37
Method
new
Create a new instance of the `StatusBar` struct. # Arguments `app_context` - An Arc wrapped AppContext struct. # Returns `Self` - The new instance o
src/components/status_bar.rs:42
Method
new
Create a new instance of the `PromptWindow` struct. # Arguments `app_context` - An Arc wrapped AppContext struct. # Returns `Self` - The new instanc
src/components/prompt_window.rs:547
Method
new
()
src/components/chat_list_window.rs:38
Method
new
(app_context: Arc<AppContext>)
src/components/reply_message.rs:34
Method
new
(app_context: Arc<AppContext>)
src/components/title_bar.rs:33
Method
new
Create a new instance of the `ChatWindow` struct. # Arguments `app_context` - An Arc wrapped AppContext struct. # Returns `Self` - The new instance
src/components/chat_window.rs:46
Method
new
Create a new instance of the `CoreWindow` struct. # Arguments `app_context` - An Arc wrapped AppContext struct. # Returns `Self` - The new instance
src/components/core_window.rs:60
Method
new
(app_context: Arc<AppContext>)
src/tg/tg_backend.rs:33
← previous
next →
201–300 of 413, ranked by callers