Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/codespin-ai/codespin-chrome-extension
/ functions
Functions
135 in github.com/codespin-ai/codespin-chrome-extension
⨍
Functions
135
◇
Types & classes
32
↓ 10 callers
Method
clear
()
src/components/FileContentViewer.tsx:136
↓ 7 callers
Method
render
()
src/components/FileTree.tsx:274
↓ 5 callers
Function
getDirectoryHandle
()
src/api/fs/getDirectoryHandle.ts:32
↓ 4 callers
Method
fetchFiles
()
src/components/FileTree.tsx:29
↓ 4 callers
Function
getFileContent
( path: string )
src/api/fs/files.ts:26
↓ 4 callers
Method
notifySelectionChange
(prevSelection?: Set<string>)
src/components/FileTree.tsx:177
↓ 4 callers
Method
render
()
src/components/FileWriter.tsx:123
↓ 4 callers
Method
render
()
src/components/FileEdits.tsx:162
↓ 4 callers
Method
setContent
(content: string, filename: string)
src/components/FileEdits.tsx:134
↓ 3 callers
Method
#updateContent
()
src/components/FileWriter.tsx:85
↓ 3 callers
Method
getSelectedFiles
()
src/components/FileTree.tsx:64
↓ 3 callers
Method
handleCancel
()
src/components/FileImporter.tsx:217
↓ 3 callers
Method
loadSelectedFile
(filepath: string, viewer: FileContentViewer)
src/components/FileImporter.tsx:189
↓ 3 callers
Method
render
()
src/components/ChangeTree.tsx:232
↓ 3 callers
Method
render
()
src/components/FileContentViewer.tsx:151
↓ 3 callers
Method
render
()
src/components/FileImporter.tsx:227
↓ 3 callers
Method
setFiles
(files: FileChange[], initialSelectedFile: string)
src/components/FileWriter.tsx:77
↓ 3 callers
Function
verifyDirectoryHandle
( handle: FileSystemDirectoryHandle )
src/api/fs/getDirectoryHandle.ts:12
↓ 2 callers
Method
#handleViewModeChange
(mode: ViewMode)
src/components/FileEdits.tsx:157
↓ 2 callers
Function
attachInboundButton
()
src/chatGPT/index.tsx:52
↓ 2 callers
Function
attachInboundButton
()
src/claude/index.tsx:43
↓ 2 callers
Function
attachSyncButton
* Attaches CodeSpin links to all <pre> elements on the page. * This function should be called periodically to handle dynamically added code blocks.
src/chatGPT/index.tsx:40
↓ 2 callers
Function
attachSyncButton
()
src/claude/index.tsx:32
↓ 2 callers
Function
createFilesSection
(filesContent: string)
src/api/prompt.ts:16
↓ 2 callers
Function
fromFileSelection
(selectedFiles: string[])
src/api/prompt.ts:42
↓ 2 callers
Method
getExpandedNodes
()
src/components/FileTree.tsx:68
↓ 2 callers
Function
getRootDirectoryName
()
src/api/fs/getDirectoryHandle.ts:8
↓ 2 callers
Function
insertHTML
(element: Element, text: string)
src/api/contentEditable.ts:35
↓ 2 callers
Function
onAppLoad
()
src/main.ts:30
↓ 2 callers
Method
restoreState
(selectedFiles: string[], expandedNodes: string[])
src/components/FileTree.tsx:72
↓ 2 callers
Method
setSelectedFiles
(files: string[], currentFile?: string)
src/components/FileContentViewer.tsx:126
↓ 2 callers
Method
show
()
src/components/FileImporter.tsx:40
↓ 2 callers
Method
toggleDirExpansion
(path: string)
src/components/FileTree.tsx:116
↓ 2 callers
Method
toggleSelection
(path: string)
src/components/FileTree.tsx:149
↓ 2 callers
Function
trimWhitespace
(input: string)
src/api/templating.ts:1
↓ 1 callers
Method
#buildFileTree
(files: { path: string; content: string }[])
src/components/ChangeTree.tsx:48
↓ 1 callers
Method
#buildFileTreeMap
( node: FileSystemNode, path: string, isRoot: boolean = false )
src/components/FileImporter.tsx:110
↓ 1 callers
Method
#collectDirectoryPaths
(node: FileNode, currentPath: string = "")
src/components/ChangeTree.tsx:33
↓ 1 callers
Method
#getAllFilesInDirectory
(dirPath: string)
src/components/FileImporter.tsx:124
↓ 1 callers
Method
#loadOriginalContent
(filename: string)
src/components/FileEdits.tsx:33
↓ 1 callers
Method
#normalizePath
(path: string)
src/components/ChangeTree.tsx:28
↓ 1 callers
Method
#setupDragListeners
()
src/components/FileWriter.tsx:61
↓ 1 callers
Method
#setupDragListeners
()
src/components/FileImporter.tsx:96
↓ 1 callers
Method
#updateDiffView
()
src/components/FileEdits.tsx:52
↓ 1 callers
Function
addSyncButtonToDOM
* Attaches a sync button (<codespin-chatgpt-sync-button>) to a specific <pre> element. * @param preElement The <pre> element to which the sync button
src/chatGPT/index.tsx:17
↓ 1 callers
Function
addSyncButtonToDOM
(preElement: HTMLElement)
src/claude/index.tsx:13
↓ 1 callers
Function
clearFileSystemCache
()
src/api/fs/getDirectoryHandle.ts:78
↓ 1 callers
Method
collectSyncButtonFiles
()
src/chatGPT/components/ChatGPTSyncButton.tsx:73
↓ 1 callers
Method
collectSyncButtonFiles
()
src/claude/components/ClaudeSyncButton.tsx:73
↓ 1 callers
Method
createChildHandler
( dirHandle: FileSystemDirectoryHandle, path: string )
src/api/fs/GitIgnoreHandler.ts:29
↓ 1 callers
Method
detectLanguage
(filename: string)
src/components/FileContentViewer.tsx:20
↓ 1 callers
Method
detectLanguage
(filename: string)
src/components/FileEdits.tsx:104
↓ 1 callers
Function
exception
(message: string)
src/exception.ts:1
↓ 1 callers
Method
getClickedFilePath
()
src/chatGPT/components/ChatGPTSyncButton.tsx:56
↓ 1 callers
Method
getClickedFilePath
()
src/claude/components/ClaudeSyncButton.tsx:56
↓ 1 callers
Function
getDefaultConvention
()
src/api/prompt.ts:5
↓ 1 callers
Function
getDirContents
( handle: FileSystemHandle, gitIgnoreHandler: GitIgnoreHandler | null, path = "" )
src/api/fs/getDirContents.ts:4
↓ 1 callers
Function
getDomain
()
src/main.ts:4
↓ 1 callers
Function
getFiles
( processGitIgnore: boolean )
src/api/fs/files.ts:10
↓ 1 callers
Method
handleCancel
()
src/components/FileWriter.tsx:104
↓ 1 callers
Method
handleCaretClick
(e: MouseEvent, path: string)
src/components/FileTree.tsx:125
↓ 1 callers
Method
handleDirClick
(e: MouseEvent, path: string)
src/components/ChangeTree.tsx:149
↓ 1 callers
Method
handleDirNameClick
(e: MouseEvent, path: string, _: FileSystemNode)
src/components/FileTree.tsx:135
↓ 1 callers
Method
handleDisconnect
()
src/components/FileImporter.tsx:203
↓ 1 callers
Method
handleFileChange
(e: Event)
src/components/FileContentViewer.tsx:143
↓ 1 callers
Method
handleFileSelect
(e: CustomEvent)
src/components/FileImporter.tsx:140
↓ 1 callers
Method
handleFileSelect
(e: MouseEvent, path: string)
src/components/FileTree.tsx:160
↓ 1 callers
Method
handleFileSelection
(selectedFiles: string[])
src/chatGPT/components/ChatGPTInboundButton.tsx:48
↓ 1 callers
Method
handleFileSelection
(selectedFiles: string[])
src/claude/components/ClaudeInboundButton.tsx:49
↓ 1 callers
Method
handleSelect
(e: CustomEvent<string[]>)
src/components/FileWriter.tsx:94
↓ 1 callers
Method
handleSelect
(e: MouseEvent, node: FileNode)
src/components/ChangeTree.tsx:159
↓ 1 callers
Method
handleSelect
()
src/components/FileImporter.tsx:221
↓ 1 callers
Method
handleWrite
()
src/components/FileWriter.tsx:108
↓ 1 callers
Method
initializeDialog
()
src/chatGPT/components/ChatGPTSyncButton.tsx:39
↓ 1 callers
Method
initializeDialog
()
src/chatGPT/components/ChatGPTInboundButton.tsx:30
↓ 1 callers
Method
initializeDialog
()
src/claude/components/ClaudeSyncButton.tsx:39
↓ 1 callers
Method
initializeDialog
()
src/claude/components/ClaudeInboundButton.tsx:31
↓ 1 callers
Function
isFileSystemApiSupported
()
src/api/fs/getDirectoryHandle.ts:4
↓ 1 callers
Method
parseIgnoreRules
(content: string, source: string)
src/api/fs/GitIgnoreHandler.ts:52
↓ 1 callers
Method
patternToRegex
(pattern: string, source: string)
src/api/fs/GitIgnoreHandler.ts:65
↓ 1 callers
Method
render
()
src/components/icons/SyncIcon.tsx:10
↓ 1 callers
Method
render
()
src/components/icons/CodeSpinIcon.tsx:10
↓ 1 callers
Method
render
()
src/chatGPT/components/ChatGPTSyncButton.tsx:100
↓ 1 callers
Method
render
()
src/chatGPT/components/ChatGPTInboundButton.tsx:62
↓ 1 callers
Method
render
()
src/claude/components/ClaudeSyncButton.tsx:100
↓ 1 callers
Method
render
()
src/claude/components/ClaudeInboundButton.tsx:63
↓ 1 callers
Method
renderNode
(node: FileNode, path: string, isRoot: boolean = false)
src/components/ChangeTree.tsx:196
↓ 1 callers
Method
renderNode
(node: FileSystemNode, path: string, isRoot: boolean = false)
src/components/FileTree.tsx:208
↓ 1 callers
Method
shouldIgnorePath
(path: string)
src/api/fs/GitIgnoreHandler.ts:113
↓ 1 callers
Method
sortContents
(contents: FileSystemNode[])
src/components/FileTree.tsx:198
↓ 1 callers
Function
start
()
src/main.ts:1
↓ 1 callers
Function
writeFileContent
( path: string, content: string )
src/api/fs/files.ts:90
Method
connectedCallback
()
src/components/FileWriter.tsx:29
Method
connectedCallback
()
src/components/FileImporter.tsx:30
Method
connectedCallback
()
src/components/FileTree.tsx:24
Method
connectedCallback
()
src/chatGPT/components/ChatGPTSyncButton.tsx:22
Method
connectedCallback
()
src/chatGPT/components/ChatGPTInboundButton.tsx:18
Method
connectedCallback
()
src/claude/components/ClaudeSyncButton.tsx:22
Method
connectedCallback
()
src/claude/components/ClaudeInboundButton.tsx:19
Method
constructor
()
src/components/FileWriter.tsx:23
next →
1–100 of 135, ranked by callers