MCPcopy Create free account

hub / github.com/jpbruinsslot/slack-term / functions

Functions161 in github.com/jpbruinsslot/slack-term

↓ 31 callersMethodSprintf
(format string, a ...interface{})
components/debug.go:65
↓ 10 callersMethodPrintln
Println will add the text to the Debug component
components/debug.go:54
↓ 9 callersFunctionactionChangeChannel
(ctx *context.AppContext)
handlers/event.go:509
↓ 7 callersMethodSetSelectedChannel
SetSelectedChannel sets the SelectedChannel given the index
components/channels.go:234
↓ 4 callersMethodClear
Clear will empty the input and move the cursor to the start position
components/input.go:203
↓ 4 callersMethodCreateMessage
CreateMessage will create a string formatted message that can be rendered in the Chat pane. [23:59] <erroneousboat> Hello world!
service/slack.go:490
↓ 4 callersMethodFindChannel
(channelID string)
components/channels.go:222
↓ 4 callersMethodGetMaxItems
GetMaxItems return the maximal amount of items can fit in the Chat component
components/chat.go:165
↓ 4 callersMethodGetMessages
GetMessages will get messages for a channel, group or im channel delimited by a count. It will return the messages, the thread identifiers (as Channel
service/slack.go:411
↓ 4 callersMethodMarkAsRead
MarkAsRead will set the channel as read
service/slack.go:269
↓ 4 callersMethodSetChannels
(channels []ChannelItem)
components/channels.go:204
↓ 4 callersMethodSetMessages
SetMessages will put the provided messages into the Messages field of the Chat view
components/chat.go:171
↓ 3 callersMethodClearMessages
ClearMessages clear the c.Messages
components/chat.go:210
↓ 3 callersMethodGotoPositionSearch
GotoPosition is used by the search functionality to automatically scroll to a specific location in the channels component
components/channels.go:364
↓ 3 callersFunctionactionInput
(view *views.View, key rune)
handlers/event.go:286
↓ 2 callersMethodAddMessage
AddMessage adds a single message to Messages
components/chat.go:181
↓ 2 callersMethodGetChannelName
GetChannelName will return a formatted representation of the name of the channel
components/channels.go:85
↓ 2 callersMethodGetRuneWidthLeft
GetRuneWidthLeft will get the width of a rune on the left side of the CursorPositionText
components/input.go:184
↓ 2 callersMethodGetSelectedChannel
Get SelectedChannel returns the ChannelItem that is currently selected
components/channels.go:239
↓ 2 callersMethodGetText
GetText returns the text currently in the input
components/input.go:212
↓ 2 callersMethodGotoPosition
GotoPosition is used by to automatically scroll to a specific location in the channels component
components/channels.go:335
↓ 2 callersMethodMoveCursorDown
MoveCursorDown will increase the SelectedChannel by 1
components/channels.go:252
↓ 2 callersMethodMoveCursorLeft
MoveCursorLeft will decrease the current CursorPositionText with 1
components/input.go:124
↓ 2 callersMethodMoveCursorRight
MoveCursorRight will increase the current CursorPositionText with 1
components/input.go:114
↓ 2 callersMethodMoveCursorTop
MoveCursorTop will move the cursor to the top of the channels
components/channels.go:260
↓ 2 callersMethodMoveCursorUp
MoveCursorUp will decrease the SelectedChannel by 1
components/channels.go:244
↓ 2 callersMethodSendReply
SendReply will send a message to a particular thread, specifying the ThreadTimestamp will make it reply to that specific thread. (see: https://api.sla
service/slack.go:318
↓ 2 callersMethodSetBorderLabel
SetBorderLabel will set Label of the Chat pane to the specified string
components/chat.go:247
↓ 2 callersMethodSetCommandMode
()
components/mode.go:98
↓ 2 callersMethodSetPresence
(channelID string, presence string)
components/channels.go:217
↓ 2 callersMethodToString
ToString will set the label of the channel, how it will be displayed on screen. Based on the type, different icons are shown, as well as an optional n
components/channels.go:46
↓ 2 callersFunctionactionChangeThread
(ctx *context.AppContext)
handlers/event.go:576
↓ 2 callersFunctionactionRedrawGrid
(ctx *context.AppContext, threads bool, debug bool)
handlers/event.go:228
↓ 2 callersFunctioncreateNotifyMessage
(ctx *context.AppContext, ev *slack.MessageEvent)
handlers/event.go:783
↓ 2 callersFunctionhandleTermboxEvents
(ctx *context.AppContext, ev termbox.Event)
handlers/event.go:92
↓ 1 callersMethodAddReply
AddReply adds a single reply to a parent thread, it also sets the thread separator
components/chat.go:187
↓ 1 callersMethodBackspace
Backspace will remove a character in front of the CursorPositionText
components/input.go:86
↓ 1 callersMethodCalculateOffset
CalculateOffset will, based on the width of the runes on the left of the text cursor, calculate the offset that needs to be used by the Inpute Compone
components/input.go:164
↓ 1 callersFunctionCreateAppContext
CreateAppContext creates an application context which can be passed and referenced througout the application
context/context.go:43
↓ 1 callersFunctionCreateChannelsComponent
CreateChannels is the constructor for the Channels component
components/channels.go:111
↓ 1 callersFunctionCreateChatComponent
CreateChatComponent is the constructor for the Chat struct
components/chat.go:23
↓ 1 callersFunctionCreateConfigFile
(filepath string)
config/config.go:77
↓ 1 callersFunctionCreateDebugComponent
(inputHeight int)
components/debug.go:16
↓ 1 callersFunctionCreateInputComponent
CreateInput is the constructor of the Input struct
components/input.go:18
↓ 1 callersMethodCreateMessageFromAttachments
CreateMessageFromAttachments will construct an array of strings from the Field values of Attachments of a Message.
service/slack.go:669
↓ 1 callersMethodCreateMessageFromFiles
CreateMessageFromFiles will create components.Message struct from conversation attached files
service/slack.go:736
↓ 1 callersMethodCreateMessageFromMessageEvent
(message *slack.MessageEvent, channelID string)
service/slack.go:756
↓ 1 callersMethodCreateMessageFromReplies
CreateMessageFromReplies will create components.Message struct from the conversation replies from slack. Useful documentation: https://api.slack.com
service/slack.go:611
↓ 1 callersFunctionCreateModeComponent
CreateMode is the constructor of the Mode struct
components/mode.go:19
↓ 1 callersFunctionCreateThreadsComponent
(height int)
components/threads.go:11
↓ 1 callersFunctionCreateView
(config *config.Config, svc *service.SlackService)
views/view.go:21
↓ 1 callersMethodDelete
Delete will remove a character at the CursorPositionText
components/input.go:106
↓ 1 callersMethodGetChannels
()
service/slack.go:77
↓ 1 callersMethodGetContent
()
components/message.go:62
↓ 1 callersMethodGetMaxWidth
GetMaxWidth returns the maximum number of positions the Input component can display
components/input.go:218
↓ 1 callersMethodGetMessageByID
CreateMessageByID will construct an array of components.Message with only 1 message, using the message ID (Timestamp). For the choice of history para
service/slack.go:460
↓ 1 callersMethodGetName
()
components/message.go:55
↓ 1 callersMethodGetRuneWidthOffsetToCursor
GetRunWidthOffsetToCursor will get the rune width of all the runes from the offset until the text cursor
components/input.go:178
↓ 1 callersMethodGetRuneWidthRight
GetRuneWidthLeft will get the width of a rune on the right side of the CursorPositionText
components/input.go:190
↓ 1 callersMethodGetThread
()
components/message.go:48
↓ 1 callersMethodGetTime
()
components/message.go:40
↓ 1 callersMethodGetUserPresence
GetUserPresence will get the presence of a specific user
service/slack.go:254
↓ 1 callersMethodHelp
Help shows the usage and key bindings in the chat pane
components/chat.go:326
↓ 1 callersFunctionInitialize
Initialize will start a combination of event handlers and 'background tasks'
handlers/event.go:56
↓ 1 callersMethodInsert
Insert will insert a given key at the place of the current CursorPositionText
components/input.go:73
↓ 1 callersMethodIsEmpty
IsEmpty will return true when the input is empty
components/input.go:195
↓ 1 callersMethodIsNewThread
IsNewThread check whether a message that is going to be added as a child to a parent message, is the first one or not
components/chat.go:200
↓ 1 callersMethodJump
Jump to the first channel with a notification
components/channels.go:388
↓ 1 callersFunctionLoading
()
views/load.go:7
↓ 1 callersMethodMarkAsUnread
(channelID string)
components/channels.go:212
↓ 1 callersMethodMessageToCells
MessageToCells will convert a Message struct to termui.Cell We're building parts of the message individually, or else DefaultTxBuilder will interpret
components/chat.go:278
↓ 1 callersMethodMessagesToCells
MessagesToCells is a wrapper around MessageToCells to use for a slice of of type Message
components/chat.go:253
↓ 1 callersMethodMoveCursorBottom
MoveCursorBottom will move the cursor to the bottom of the channels
components/channels.go:267
↓ 1 callersFunctionNewSlackService
NewSlackService is the constructor for the SlackService and will initialize the RTM and a Client
service/slack.go:35
↓ 1 callersMethodRefresh
()
views/view.go:91
↓ 1 callersMethodScrollDown
ScrollDown enables us to scroll through the channel list when it overflows
components/channels.go:294
↓ 1 callersMethodScrollDown
ScrollDown will render the chat messages based on the Offset of the Chat pane. Offset is 0 when scrolled down. (we loop backwards over the array, so
components/chat.go:237
↓ 1 callersMethodScrollLeft
()
components/input.go:133
↓ 1 callersMethodScrollRight
()
components/input.go:146
↓ 1 callersMethodScrollUp
ScrollUp enables us to scroll through the channel list when it overflows
components/channels.go:282
↓ 1 callersMethodScrollUp
ScrollUp will render the chat messages based on the Offset of the Chat pane. Offset is 0 when scrolled down. (we loop backwards over the array, so we
components/chat.go:221
↓ 1 callersMethodSearch
Search will search through the channels to find a channel, when a match has been found the selected channel will then be the channel that has been fou
components/channels.go:308
↓ 1 callersMethodSearchNext
SearchNext allows us to cycle through the c.SearchMatches
components/channels.go:370
↓ 1 callersMethodSearchPrev
SearchPrev allows us to cycle through the c.SearchMatches
components/channels.go:379
↓ 1 callersMethodSendCommand
SendCommand will send a specific command to slack. First we check wether we are dealing with a command, and if it is one of the supported ones. NOTE:
service/slack.go:347
↓ 1 callersMethodSendMessage
SendMessage will send a message to a particular channel
service/slack.go:295
↓ 1 callersMethodSetInsertMode
()
components/mode.go:93
↓ 1 callersMethodSetSearchMode
()
components/mode.go:103
↓ 1 callersMethodSetUserAsActive
Set current user presence to active
service/slack.go:264
↓ 1 callersFunctionSortMessages
(msgs map[string]Message)
components/message.go:81
↓ 1 callersFunctionactionCommandMode
(ctx *context.AppContext)
handlers/event.go:418
↓ 1 callersFunctionactionKeyEvent
(ctx *context.AppContext, ev termbox.Event)
handlers/event.go:187
↓ 1 callersFunctionactionNewMessage
actionNewMessage will set the new message indicator for a channel, and if configured will also display a desktop notification
handlers/event.go:654
↓ 1 callersFunctionactionResizeEvent
(ctx *context.AppContext, ev termbox.Event)
handlers/event.go:210
↓ 1 callersFunctionactionSearch
actionSearch will search through the channels based on the users input. A time is implemented to make sure the actual searching and changing of channe
handlers/event.go:386
↓ 1 callersFunctionactionSetPresence
(ctx *context.AppContext, channelID string, presence string)
handlers/event.go:671
↓ 1 callersFunctionactionSetPresenceAll
actionPresenceAll will set the presence of the user list. Because the requests to the endpoint are rate limited we implement a timeout here.
handlers/event.go:678
↓ 1 callersMethodcolorizeName
(styleName string)
components/message.go:66
↓ 1 callersMethodcreateChannelItem
(chn slack.Channel)
service/slack.go:848
↓ 1 callersFunctioneventHandler
eventHandler will handle events created by the user
handlers/event.go:69
next →1–100 of 161, ranked by callers