Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bahdotsh/mdlib
/ functions
Functions
84 in github.com/bahdotsh/mdlib
⨍
Functions
84
◇
Types & classes
13
↓ 13 callers
Function
showToast
(message, type = 'success')
static/js/app.js:1525
↓ 9 callers
Function
loadFiles
()
static/js/app.js:335
↓ 8 callers
Function
list_markdown_files
Lists all markdown files in the given directory and its subdirectories
src/fs.rs:19
↓ 5 callers
Function
loadFile
(path)
static/js/app.js:715
↓ 5 callers
Function
setViewMode
(mode)
static/js/app.js:296
↓ 5 callers
Function
updatePreview
()
static/js/app.js:761
↓ 4 callers
Function
applyFormat
(format)
static/js/app.js:942
↓ 4 callers
Function
closeContextMenu
()
static/js/app.js:707
↓ 4 callers
Function
displayFiles
(files)
static/js/app.js:365
↓ 4 callers
Function
loadCategories
()
static/js/app.js:1107
↓ 4 callers
Function
read_markdown_file
Reads the content of a markdown file (or README)
src/fs.rs:104
↓ 4 callers
Function
updateTagsDisplay
()
static/js/app.js:1277
↓ 4 callers
Function
write_markdown_file
Writes content to a markdown file
src/fs.rs:109
↓ 3 callers
Function
add_tags_to_file
Add tags to a markdown file
src/fs.rs:254
↓ 3 callers
Function
delete_markdown_file
Deletes a markdown file
src/fs.rs:134
↓ 3 callers
Function
extract_frontmatter
Extract YAML frontmatter from markdown content if present
src/fs.rs:213
↓ 3 callers
Function
extract_tags_from_content
Extract tags from a markdown content string
src/fs.rs:170
↓ 3 callers
Function
getFilename
(path)
static/js/app.js:1023
↓ 3 callers
Function
remove_tags_from_file
Remove tags from a markdown file
src/fs.rs:327
↓ 2 callers
Function
create_markdown_file
Creates a new markdown file with the given name
src/fs.rs:119
↓ 2 callers
Function
debounce
(func, delay)
static/js/app.js:1028
↓ 2 callers
Function
deleteFile
(path)
static/js/app.js:1382
↓ 2 callers
Function
extract_tags_from_file
Extract tags from a markdown file
src/fs.rs:164
↓ 2 callers
Function
get_category_from_path
Get the category from a file path (relative to base directory)
src/fs.rs:224
↓ 2 callers
Function
hideAddTagsModal
()
static/js/app.js:1050
↓ 2 callers
Function
hideCategoryForm
()
static/js/app.js:1376
↓ 2 callers
Function
hideNewNoteModal
()
static/js/app.js:288
↓ 2 callers
Function
init
()
static/js/app.js:60
↓ 2 callers
Function
saveCurrentFile
()
static/js/app.js:785
↓ 2 callers
Function
scheduleAutoSave
()
static/js/app.js:833
↓ 2 callers
Function
showAddTagsModal
(filePath)
static/js/app.js:1042
↓ 2 callers
Function
toggleSidebar
()
static/js/app.js:267
↓ 1 callers
Function
add_tags_to_content
Add tags to markdown content
src/fs.rs:261
↓ 1 callers
Function
changeNoteCategory
(filePath, newCategory)
static/js/app.js:1486
↓ 1 callers
Function
checkScreenSize
()
static/js/app.js:255
↓ 1 callers
Function
configureMarked
()
static/js/app.js:99
↓ 1 callers
Function
createCategory
()
static/js/app.js:1230
↓ 1 callers
Function
createNewNote
()
static/js/app.js:846
↓ 1 callers
Function
createToastContainer
()
static/js/app.js:272
↓ 1 callers
Function
create_category
Create a new category
src/server.rs:598
↓ 1 callers
Function
deleteCategory
(category)
static/js/app.js:1456
↓ 1 callers
Function
enableVirtualScrolling
()
static/js/app.js:519
↓ 1 callers
Function
extract_category_from_content
Helper function to extract category from content
src/server.rs:310
↓ 1 callers
Function
extract_frontmatter
Extract YAML frontmatter from markdown content if present
src/server.rs:323
↓ 1 callers
Function
get_relative_path
Gets the relative path from base directory
src/fs.rs:145
↓ 1 callers
Function
handle_config_command
(args: &[String])
src/main.rs:79
↓ 1 callers
Function
list_embedded_files
Function to list all embedded files for debugging
src/embedded.rs:112
↓ 1 callers
Function
remove_tags_from_content
Remove tags from markdown content
src/fs.rs:334
↓ 1 callers
Function
searchByCategory
(category)
static/js/app.js:1325
↓ 1 callers
Function
searchByTag
(tag)
static/js/app.js:1343
↓ 1 callers
Function
serve_embedded_file
(path: &str)
src/embedded.rs:14
↓ 1 callers
Method
server_address
Get the server address with port
src/config.rs:71
↓ 1 callers
Function
setupEventListeners
()
static/js/app.js:123
↓ 1 callers
Function
showCategoryForm
()
static/js/app.js:1370
↓ 1 callers
Function
showContextMenu
(e, filePath)
static/js/app.js:568
↓ 1 callers
Function
start_server
Start the web server
src/server.rs:105
↓ 1 callers
Function
updateCategoriesDisplay
()
static/js/app.js:1126
↓ 1 callers
Function
updateCategoryDropdown
()
static/js/app.js:1218
↓ 1 callers
Function
updateVisibleItems
()
static/js/app.js:529
↓ 1 callers
Function
verify_essential_files
Function to verify that essential files are embedded
src/embedded.rs:92
Function
addTagsToCurrentFile
()
static/js/app.js:1056
Function
add_tags
Add tags to a file
src/server.rs:530
Function
create_category
Creates a new category directory
src/fs.rs:236
Function
create_file
Create a new markdown file
src/server.rs:250
Method
default
()
src/config.rs:21
Function
delete_category
Delete a category directory
src/fs.rs:400
Function
delete_category
Delete a category
src/server.rs:733
Function
delete_file
Delete a file
src/server.rs:404
Function
get_file
Get the content of a file
src/server.rs:184
Function
handleKeyboardShortcuts
(e)
static/js/app.js:990
Method
into_response
(self)
src/server.rs:40
Function
later
()
static/js/app.js:1031
Function
list_categories
List all categories
src/server.rs:616
Function
list_files
List all markdown files
src/server.rs:174
Method
load_or_default
Load configuration from a file or create default if it doesn't exist
src/config.rs:34
Function
main
()
src/main.rs:10
Function
removeTagFromFile
(filePath, tag)
static/js/app.js:1420
Function
remove_tags
Remove tags from a file
src/server.rs:665
Function
searchFiles
()
static/js/app.js:917
Function
search_files
Search for files containing a query
src/server.rs:471
Function
showNewNoteModal
()
static/js/app.js:279
Function
static_handler
Handler for all embedded static assets
src/embedded.rs:86
Function
toggleCategoryForm
()
static/js/app.js:1361
Function
update_file
Update an existing file
src/server.rs:334