Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/Xithrius/twitch-tui
/ functions
Functions
272 in github.com/Xithrius/twitch-tui
⨍
Functions
272
◇
Types & classes
78
↓ 47 callers
Method
get
(&self, key: &str)
src/handlers/storage.rs:94
↓ 44 callers
Method
len
(&self)
src/utils/emotes.rs:46
↓ 30 callers
Method
iter
(&'_ self)
src/utils/emotes.rs:50
↓ 17 callers
Method
contains
(&self, key: &str, value: &str)
src/handlers/storage.rs:120
↓ 17 callers
Method
is_focused
(&self)
src/ui/components/debug.rs:38
↓ 16 callers
Method
next
(&mut self)
src/ui/components/emote_picker.rs:83
↓ 13 callers
Method
clear
(&mut self)
src/ui/components/utils/input_widget.rs:88
↓ 12 callers
Function
title_line
(contents: &'a [TitleStyle<'a>], style: Style)
src/utils/text.rs:40
↓ 10 callers
Method
next
(&mut self)
src/handlers/user_input/events.rs:138
↓ 9 callers
Method
insert
(&mut self, s: &str)
src/ui/components/utils/input_widget.rs:117
↓ 8 callers
Method
toggle_focus
(&mut self)
src/ui/components/debug.rs:42
↓ 7 callers
Method
apply
While the structs that implement this trait can be sent between thread safely, this function is not thread safe, and needs to be called from the main
src/emotes/graphics_protocol.rs:384
↓ 7 callers
Function
first_similarity
Within an array of strings, find the first partial or full match, if any.
src/utils/text.rs:65
↓ 7 callers
Method
string
(&self)
src/utils/emotes.rs:64
↓ 7 callers
Function
u32_to_color
Convert a u32 to RGB values, discarding the highest byte.
src/utils/colors.rs:36
↓ 6 callers
Method
add
(&mut self, key: &str, value: String)
src/handlers/storage.rs:79
↓ 6 callers
Function
emotes_enabled
(frontend: &FrontendConfig)
src/utils/emotes.rs:9
↓ 6 callers
Method
replace
(&mut self, idx: usize, old: &str, new: &str)
src/ui/components/utils/input_widget.rs:42
↓ 6 callers
Method
system
(self, payload: String)
src/handlers/data.rs:632
↓ 6 callers
Method
twitch
(self, payload: String)
src/handlers/data.rs:644
↓ 5 callers
Function
cache_path
(file: &str)
src/utils/pathing.rs:31
↓ 5 callers
Function
clean_message
Some twitch clients bypass the 30s timeout for duplicate messages by appending a space followed by the `'\u{e0000}'` character to the end of the messa
src/utils/text.rs:118
↓ 5 callers
Function
parse_message_action
This function handles the detection and parsing of the twitch /me command. This command is received as an IRC CTCP ACTION, which wraps the message, an
src/utils/text.rs:102
↓ 5 callers
Method
reverse
(&mut self)
src/handlers/filters.rs:59
↓ 5 callers
Method
to_vec
( &self, frontend_config: &FrontendConfig, width: usize, search_highlight: Opt
src/handlers/data.rs:442
↓ 5 callers
Method
write_ansi
(&self, f: &mut impl fmt::Write)
src/emotes/graphics_protocol.rs:82
↓ 4 callers
Function
assert_build_line
( line: &'s str, start_index: usize, search_highlight: Highlight, username_hig
src/handlers/data.rs:759
↓ 4 callers
Function
build_line
()
src/handlers/data.rs:806
↓ 4 callers
Function
centered_rect
(percent_x: u16, percent_y: u16, height: u16, r: Rect)
src/ui/components/utils/popups.rs:3
↓ 4 callers
Method
clear_messages
(&mut self)
src/handlers/app.rs:177
↓ 4 callers
Function
config_path
(file: &str)
src/utils/pathing.rs:13
↓ 4 callers
Method
get_offset
(&self)
src/handlers/user_input/scrolling.rs:32
↓ 4 callers
Function
get_twitch_client_id
(token: Option<&str>)
src/twitch/oauth.rs:20
↓ 4 callers
Method
jump_to
(&mut self, index: usize)
src/handlers/user_input/scrolling.rs:28
↓ 4 callers
Method
set_state
(&mut self, other: State)
src/handlers/app.rs:216
↓ 4 callers
Function
setup
()
src/handlers/filters.rs:68
↓ 4 callers
Method
toggle_focus
(&mut self)
src/ui/components/utils/search_widget.rs:130
↓ 4 callers
Method
unload
(&self)
src/emotes/mod.rs:90
↓ 4 callers
Method
update
(&mut self, s: &str)
src/ui/components/utils/input_widget.rs:84
↓ 3 callers
Method
decode
(self)
src/emotes/graphics_protocol.rs:229
↓ 3 callers
Function
display_emote
(id: u32, pid: u32, cols: u16)
src/emotes/mod.rs:258
↓ 3 callers
Method
down
(&mut self)
src/handlers/user_input/scrolling.rs:24
↓ 3 callers
Function
hsl_to_rgb
<https://css-tricks.com/converting-color-spaces-in-javascript/#hsl-to-rgb/>
src/utils/colors.rs:4
↓ 3 callers
Method
insert_str
(&mut self, idx: usize, string: &str)
src/ui/components/utils/input_widget.rs:40
↓ 3 callers
Method
is_valid
(&self)
src/ui/components/utils/input_widget.rs:105
↓ 3 callers
Function
remove_temp_file
(path: &Path)
src/utils/pathing.rs:66
↓ 3 callers
Method
toggle_focus
(&mut self)
src/ui/components/channel_switcher.rs:133
↓ 3 callers
Method
unselect
(&mut self)
src/ui/components/channel_switcher.rs:125
↓ 3 callers
Method
up
(&mut self)
src/handlers/user_input/scrolling.rs:20
↓ 2 callers
Method
create_interactive_list_widget
( &'a self, items: &'a [String], index_offset: usize, )
src/ui/components/dashboard.rs:53
↓ 2 callers
Function
download_emotes
(emotes: EmoteMap)
src/emotes/downloader.rs:365
↓ 2 callers
Method
draw
(&mut self, f: &mut Frame)
src/handlers/app.rs:110
↓ 2 callers
Function
first_similarity_iter
( possibilities: impl Iterator<Item = &'a String>, search: &str, )
src/utils/text.rs:69
↓ 2 callers
Function
fuzzy_pattern_match
(pattern: &str, choice: &str)
src/utils/search.rs:7
↓ 2 callers
Function
get_emote_offset
(width: u16, cell_width: u16, cols: u16)
src/utils/emotes.rs:16
↓ 2 callers
Function
get_twitch_client
(oauth_token: Option<&str>)
src/twitch/oauth.rs:47
↓ 2 callers
Method
is_focused
(&self)
src/ui/components/chat_input.rs:84
↓ 2 callers
Method
is_focused
(&self)
src/ui/components/utils/search_widget.rs:126
↓ 2 callers
Method
is_inverted
(&self)
src/handlers/user_input/scrolling.rs:16
↓ 2 callers
Function
query_emotes
( config: &CompleteConfig, channel: String, )
src/emotes/mod.rs:113
↓ 2 callers
Method
remove_inner_with
(&mut self, key: &str, value: &str)
src/handlers/storage.rs:124
↓ 2 callers
Function
reset_terminal
()
src/commands.rs:33
↓ 2 callers
Function
save_emote
(path: &Path, mut res: Response)
src/emotes/downloader.rs:355
↓ 2 callers
Method
toggle_focus
(&mut self)
src/ui/components/chat_input.rs:88
↓ 2 callers
Method
toggle_focus
(&mut self)
src/ui/components/emote_picker.rs:114
↓ 2 callers
Method
toggle_focus_with
(&mut self, s: &str)
src/ui/components/chat_input.rs:92
↓ 2 callers
Method
unselect
(&mut self)
src/ui/components/emote_picker.rs:107
↓ 2 callers
Method
unselect
(&mut self)
src/ui/components/utils/search_widget.rs:122
↓ 2 callers
Function
wait_client_stream
( tx: Sender<TwitchToTerminalAction>, data_builder: DataBuilder<'_>, config: CompleteConfig, )
src/twitch/connection.rs:37
↓ 1 callers
Method
accept_suggestion
(&mut self)
src/ui/components/utils/input_widget.rs:111
↓ 1 callers
Function
capitalize_first_char
<https://stackoverflow.com/a/38406885/>
src/utils/text.rs:91
↓ 1 callers
Method
cleanup
(&self)
src/handlers/app.rs:172
↓ 1 callers
Method
cols
(&self)
src/emotes/graphics_protocol.rs:76
↓ 1 callers
Method
contaminated
(&self, data: &str)
src/handlers/filters.rs:35
↓ 1 callers
Function
create_client_stream
Initialize the config and send it to the client to connect to an IRC channel.
src/twitch/connection.rs:15
↓ 1 callers
Function
create_temp_file
(prefix: &str)
src/utils/pathing.rs:50
↓ 1 callers
Function
decoder
(mut rx: Receiver<Image>, tx: &Sender<Result<DecodedEmote, String>>)
src/emotes/mod.rs:150
↓ 1 callers
Method
default
()
src/handlers/state.rs:50
↓ 1 callers
Method
delete
(&mut self, idx: usize, string: &str, dir: rustyline::line_buffer::Direction)
src/ui/components/utils/input_widget.rs:47
↓ 1 callers
Method
dump_data
(&self)
src/handlers/storage.rs:71
↓ 1 callers
Method
enabled
(&self)
src/handlers/filters.rs:47
↓ 1 callers
Method
event
(&mut self, event: &Event)
src/handlers/app.rs:148
↓ 1 callers
Method
frames
(self: Box<Self>)
src/emotes/graphics_protocol.rs:41
↓ 1 callers
Function
get_channel_id
(client: &Client, channel: &str)
src/twitch/oauth.rs:75
↓ 1 callers
Method
get_config_values
(&self)
src/ui/components/debug.rs:46
↓ 1 callers
Function
get_cursor_position
Acquiring the horizontal position of the cursor so it can be rendered visually.
src/utils/text.rs:10
↓ 1 callers
Function
get_emotes
(channel_id: i32)
src/emotes/downloader.rs:139
↓ 1 callers
Function
get_enabled_emote_providers
(config: &FrontendConfig)
src/emotes/downloader.rs:404
↓ 1 callers
Function
get_following
(twitch_config: &TwitchConfig)
src/twitch/channels.rs:67
↓ 1 callers
Method
get_items
(&mut self)
src/twitch/channels.rs:84
↓ 1 callers
Method
get_last_n
(&self, key: &str, n: usize, reverse: bool)
src/handlers/storage.rs:104
↓ 1 callers
Method
get_messages
( &self, frame: &Frame, area: Rect, messages_data: &'a VecDeque<MessageData>,
src/ui/components/chat.rs:82
↓ 1 callers
Method
get_previous_state
(&self)
src/handlers/app.rs:207
↓ 1 callers
Function
get_twitch_emote
(name: &str)
src/emotes/downloader.rs:467
↓ 1 callers
Function
get_user_emotes
Twitch will not send all the emotes in one response, we use the cursor they return to query further emotes.
src/emotes/downloader.rs:88
↓ 1 callers
Function
get_user_following
https://dev.twitch.tv/docs/api/reference/#get-followed-channels
src/twitch/channels.rs:55
↓ 1 callers
Function
handle_roomstate
( tx: &Sender<TwitchToTerminalAction>, tags: &HashMap<&str, &str, S>, )
src/twitch/mod.rs:329
↓ 1 callers
Method
hash_username
(&self, palette: &Palette)
src/handlers/data.rs:291
↓ 1 callers
Method
id
(&self)
src/emotes/graphics_protocol.rs:72
↓ 1 callers
Function
init_terminal
(frontend_config: &FrontendConfig)
src/commands.rs:39
next →
1–100 of 272, ranked by callers