MCPcopy Index your code

hub / github.com/maaslalani/slides / functions

Functions73 in github.com/maaslalani/slides

↓ 6 callersFunctionHideComments
HideComments removes all comments from the given content.
internal/code/comments.go:13
↓ 5 callersMethodExecute
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 callersFunctionRemoveComments
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 callersFunctionSelectTheme
SelectTheme picks a glamour style config based on the theme provided in the markdown header
styles/styles.go:60
↓ 3 callersMethodDone
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 callersMethodLoad
Load loads all of the content and metadata for the presentation.
internal/model/model.go:74
↓ 3 callersFunctionNew
New creates a new instance of the slideshow meta header object
internal/meta/meta.go:35
↓ 3 callersFunctionParse
Parse takes a block of markdown and returns an array of Block's with code and associated languages
internal/code/code.go:38
↓ 3 callersMethodParse
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 callersMethodSetQuery
SetQuery sets the text input's value
internal/navigation/search.go:43
↓ 3 callersMethodString
String implements the Stringer interface.
internal/process/process.go:26
↓ 3 callersFunctionbufferIsNumeric
(buffer string)
internal/navigation/navigation.go:73
↓ 3 callersFunctiongetDefaultTheme
()
styles/styles.go:98
↓ 2 callersMethodCurrentPage
()
internal/navigation/search.go:13
↓ 2 callersMethodCurrentPage
()
internal/navigation/search_test.go:12
↓ 2 callersFunctionExecute
Execute takes a code.Block and returns the output of the executed code
internal/code/code.go:69
↓ 2 callersFunctionIsExecutable
IsExecutable returns whether a file has execution permissions
internal/file/file.go:22
↓ 2 callersFunctionNavigate
Navigate receives the current State and keyPress, and returns the new State.
internal/navigation/navigation.go:17
↓ 2 callersFunctionNewSearch
NewSearch creates and returns a new search model with the default settings.
internal/navigation/search.go:28
↓ 2 callersMethodPages
()
internal/navigation/search.go:15
↓ 2 callersFunctionParse
Parse takes some markdown and returns blocks to be pre-processed
internal/process/process.go:35
↓ 2 callersMethodQuery
Query returns the text input's value.
internal/navigation/search.go:38
↓ 2 callersMethodStart
Start starts the ssh server.
internal/server/server.go:42
↓ 2 callersFunctionfileWatchCmd
()
internal/model/model.go:67
↓ 2 callersFunctionparseDate
(value string)
internal/meta/meta.go:115
↓ 2 callersFunctionrepeatableAction
(fn repeatableFunc, state State)
internal/navigation/navigation.go:113
↓ 1 callersMethodBegin
Begin a new search (deletes old buffer)
internal/navigation/search.go:55
↓ 1 callersMethodExecute
Execute search
internal/navigation/search.go:61
↓ 1 callersFunctionExists
Exists is a helper to verify that the provided filepath exists on the system
internal/file/file.go:13
↓ 1 callersFunctionJoinHorizontal
JoinHorizontal joins two strings horizontally and fills the space in-between.
styles/styles.go:47
↓ 1 callersFunctionJoinVertical
JoinVertical joins two strings vertically and fills the space in-between.
styles/styles.go:53
↓ 1 callersFunctionNewServer
NewServer creates a new server.
internal/server/server.go:21
↓ 1 callersFunctionPre
Pre processes the markdown content by executing the commands necessary and returns the new processed content
internal/process/process.go:74
↓ 1 callersMethodSetPage
SetPage sets which page the presentation should render.
internal/model/model.go:300
↓ 1 callersMethodSetPage
(page int)
internal/navigation/search.go:14
↓ 1 callersMethodShutdown
Shutdown shuts down the server.
internal/server/server.go:47
↓ 1 callersFunctiondefaultAuthor
()
internal/meta/meta.go:98
↓ 1 callersFunctiondefaultDate
()
internal/meta/meta.go:107
↓ 1 callersFunctiondefaultPaging
()
internal/meta/meta.go:111
↓ 1 callersFunctiondefaultTheme
()
internal/meta/meta.go:90
↓ 1 callersFunctionnavigateNext
(state State)
internal/navigation/navigation.go:78
↓ 1 callersFunctionnavigatePrevious
(state State)
internal/navigation/navigation.go:103
↓ 1 callersFunctionnavigateSlide
(buffer string, totalSlides int)
internal/navigation/navigation.go:88
↓ 1 callersMethodpaging
()
internal/model/model.go:228
↓ 1 callersFunctionreadFile
(path string)
internal/model/model.go:239
↓ 1 callersFunctionreadStdin
()
internal/model/model.go:267
↓ 1 callersFunctionslidesMiddleware
(srv *Server)
internal/server/middleware.go:13
MethodCurrentPage
CurrentPage returns the current page the presentation is on.
internal/model/model.go:295
FunctionExampleMeta_Parse
()
internal/meta/meta_test.go:190
MethodInit
Init initializes the model and begins watching the slides file for changes if it exists.
internal/model/model.go:59
MethodPages
Pages returns all the slides in the presentation.
internal/model/model.go:310
MethodPages
()
internal/navigation/search_test.go:20
MethodSetPage
(page int)
internal/navigation/search_test.go:16
FunctionTestExecute
(t *testing.T)
internal/process/execute_test.go:5
FunctionTestExecute
(t *testing.T)
internal/code/execute_test.go:9
FunctionTestExists
(t *testing.T)
internal/file/file_test.go:13
FunctionTestHidesComments
(t *testing.T)
internal/code/comments_test.go:5
FunctionTestIsExecutable
(t *testing.T)
internal/file/file_test.go:33
FunctionTestMeta_ParseHeader
(t *testing.T)
internal/meta/meta_test.go:13
FunctionTestNavigation
(t *testing.T)
internal/navigation/navigation_test.go:10
FunctionTestNew
(t *testing.T)
internal/meta/meta_test.go:176
FunctionTestNoComments
(t *testing.T)
internal/code/comments_test.go:23
FunctionTestParse
(t *testing.T)
internal/process/process_test.go:8
FunctionTestParse
(t *testing.T)
internal/code/code_test.go:9
FunctionTestRemoveComments
(t *testing.T)
internal/code/comments_test.go:42
FunctionTestSearch
(t *testing.T)
internal/navigation/search_test.go:24
FunctionTestSelectTheme
(t *testing.T)
styles/styles_test.go:12
FunctionTestSelectTheme_file
(t *testing.T)
styles/styles_test.go:54
MethodUpdate
Update updates the presentation model.
internal/model/model.go:110
MethodView
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
Functioninit
()
main.go:46
Functioninit
()
internal/cmd/serve.go:87
Functionmain
()
main.go:53