Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/maaslalani/slides
/ functions
Functions
73 in github.com/maaslalani/slides
⨍
Functions
73
◇
Types & classes
16
↓ 6 callers
Function
HideComments
HideComments removes all comments from the given content.
internal/code/comments.go:13
↓ 5 callers
Method
Execute
Execute takes performs the execution of the block's command by passing in the block's input as stdin and sets the block output
internal/process/process.go:51
↓ 4 callers
Function
RemoveComments
RemoveComments strips all the comments from the given content. This is useful for when we want to actually use the content of the comments.
internal/code/comments.go:19
↓ 4 callers
Function
SelectTheme
SelectTheme picks a glamour style config based on the theme provided in the markdown header
styles/styles.go:60
↓ 3 callers
Method
Done
Done marks the search as done, but does not delete the search buffer. This is useful if, for example, you want to jump to the next result and you ther
internal/navigation/search.go:50
↓ 3 callers
Method
Load
Load loads all of the content and metadata for the presentation.
internal/model/model.go:74
↓ 3 callers
Function
New
New creates a new instance of the slideshow meta header object
internal/meta/meta.go:35
↓ 3 callers
Function
Parse
Parse takes a block of markdown and returns an array of Block's with code and associated languages
internal/code/code.go:38
↓ 3 callers
Method
Parse
Parse parses metadata from a slideshows header slide including theme information If no front matter is provided, it will fallback to the default them
internal/meta/meta.go:44
↓ 3 callers
Method
SetQuery
SetQuery sets the text input's value
internal/navigation/search.go:43
↓ 3 callers
Method
String
String implements the Stringer interface.
internal/process/process.go:26
↓ 3 callers
Function
bufferIsNumeric
(buffer string)
internal/navigation/navigation.go:73
↓ 3 callers
Function
getDefaultTheme
()
styles/styles.go:98
↓ 2 callers
Method
CurrentPage
()
internal/navigation/search.go:13
↓ 2 callers
Method
CurrentPage
()
internal/navigation/search_test.go:12
↓ 2 callers
Function
Execute
Execute takes a code.Block and returns the output of the executed code
internal/code/code.go:69
↓ 2 callers
Function
IsExecutable
IsExecutable returns whether a file has execution permissions
internal/file/file.go:22
↓ 2 callers
Function
Navigate
Navigate receives the current State and keyPress, and returns the new State.
internal/navigation/navigation.go:17
↓ 2 callers
Function
NewSearch
NewSearch creates and returns a new search model with the default settings.
internal/navigation/search.go:28
↓ 2 callers
Method
Pages
()
internal/navigation/search.go:15
↓ 2 callers
Function
Parse
Parse takes some markdown and returns blocks to be pre-processed
internal/process/process.go:35
↓ 2 callers
Method
Query
Query returns the text input's value.
internal/navigation/search.go:38
↓ 2 callers
Method
Start
Start starts the ssh server.
internal/server/server.go:42
↓ 2 callers
Function
fileWatchCmd
()
internal/model/model.go:67
↓ 2 callers
Function
parseDate
(value string)
internal/meta/meta.go:115
↓ 2 callers
Function
repeatableAction
(fn repeatableFunc, state State)
internal/navigation/navigation.go:113
↓ 1 callers
Method
Begin
Begin a new search (deletes old buffer)
internal/navigation/search.go:55
↓ 1 callers
Method
Execute
Execute search
internal/navigation/search.go:61
↓ 1 callers
Function
Exists
Exists is a helper to verify that the provided filepath exists on the system
internal/file/file.go:13
↓ 1 callers
Function
JoinHorizontal
JoinHorizontal joins two strings horizontally and fills the space in-between.
styles/styles.go:47
↓ 1 callers
Function
JoinVertical
JoinVertical joins two strings vertically and fills the space in-between.
styles/styles.go:53
↓ 1 callers
Function
NewServer
NewServer creates a new server.
internal/server/server.go:21
↓ 1 callers
Function
Pre
Pre processes the markdown content by executing the commands necessary and returns the new processed content
internal/process/process.go:74
↓ 1 callers
Method
SetPage
SetPage sets which page the presentation should render.
internal/model/model.go:300
↓ 1 callers
Method
SetPage
(page int)
internal/navigation/search.go:14
↓ 1 callers
Method
Shutdown
Shutdown shuts down the server.
internal/server/server.go:47
↓ 1 callers
Function
defaultAuthor
()
internal/meta/meta.go:98
↓ 1 callers
Function
defaultDate
()
internal/meta/meta.go:107
↓ 1 callers
Function
defaultPaging
()
internal/meta/meta.go:111
↓ 1 callers
Function
defaultTheme
()
internal/meta/meta.go:90
↓ 1 callers
Function
navigateNext
(state State)
internal/navigation/navigation.go:78
↓ 1 callers
Function
navigatePrevious
(state State)
internal/navigation/navigation.go:103
↓ 1 callers
Function
navigateSlide
(buffer string, totalSlides int)
internal/navigation/navigation.go:88
↓ 1 callers
Method
paging
()
internal/model/model.go:228
↓ 1 callers
Function
readFile
(path string)
internal/model/model.go:239
↓ 1 callers
Function
readStdin
()
internal/model/model.go:267
↓ 1 callers
Function
slidesMiddleware
(srv *Server)
internal/server/middleware.go:13
Method
CurrentPage
CurrentPage returns the current page the presentation is on.
internal/model/model.go:295
Function
ExampleMeta_Parse
()
internal/meta/meta_test.go:190
Method
Init
Init initializes the model and begins watching the slides file for changes if it exists.
internal/model/model.go:59
Method
Pages
Pages returns all the slides in the presentation.
internal/model/model.go:310
Method
Pages
()
internal/navigation/search_test.go:20
Method
SetPage
(page int)
internal/navigation/search_test.go:16
Function
TestExecute
(t *testing.T)
internal/process/execute_test.go:5
Function
TestExecute
(t *testing.T)
internal/code/execute_test.go:9
Function
TestExists
(t *testing.T)
internal/file/file_test.go:13
Function
TestHidesComments
(t *testing.T)
internal/code/comments_test.go:5
Function
TestIsExecutable
(t *testing.T)
internal/file/file_test.go:33
Function
TestMeta_ParseHeader
(t *testing.T)
internal/meta/meta_test.go:13
Function
TestNavigation
(t *testing.T)
internal/navigation/navigation_test.go:10
Function
TestNew
(t *testing.T)
internal/meta/meta_test.go:176
Function
TestNoComments
(t *testing.T)
internal/code/comments_test.go:23
Function
TestParse
(t *testing.T)
internal/process/process_test.go:8
Function
TestParse
(t *testing.T)
internal/code/code_test.go:9
Function
TestRemoveComments
(t *testing.T)
internal/code/comments_test.go:42
Function
TestSearch
(t *testing.T)
internal/navigation/search_test.go:24
Function
TestSelectTheme
(t *testing.T)
styles/styles_test.go:12
Function
TestSelectTheme_file
(t *testing.T)
styles/styles_test.go:54
Method
Update
Update updates the presentation model.
internal/model/model.go:110
Method
View
View renders the current slide in the presentation and the status bar which contains the author, date, and pagination information.
internal/model/model.go:203
Function
init
()
main.go:46
Function
init
()
internal/cmd/serve.go:87
Function
main
()
main.go:53