cattailnu23k downloadsCreate a File Info view that displays the active file's date created, date modified, file size, and links to open the file in its native application and to open the file's folder.
This plugin for Obsidian creates a File Information view that displays the active file's date created, date modified, file size, and links to open the file in its native application and to open the file's folder. It also has writing statistics (character, word, sentence, paragraph, and line counts) and a word frequency analysis.
After enabling the plugin in the settings menu, you should see the info button appear in the left navigation panel. This will toggle the File Info Panel view.
The File Info Panel settings allows you to set which file information is displayed.
Mon, Nov 22, 2021 7:59 PM
21 days ago
obsidian-file-info-panel-plugin has been tested on Mac and Windows 11, Obsidian v0.12.19. Mobile versions appear to be working.
Show Date Created: Display the date and time the file was created.
Show Date Modified: Display the date and time the file was last modified.
Show File Size: Display the human readable file size.
Show File: Display the file name as a link to open the file in its default application.
Show Folder: Display the file's folder as a link to open that folder.
Show Folder as Relative Path: Display the file's vault-relative location rather than the full path.
Show Character Count: Display a character count for md and txt files.
Show Word Count: Display a word count for md and txt files.
Show Sentence Count: Display a sentence count for md and txt files.
Show Paragraph Count: Display a paragraph count for md and txt files. Does not include empty lines.
Show Line Count: Display a line count for md and txt files.
Show Page Count Estimate: Display a sentence count for md and txt files.
Words Per Page: Enter the estimated words per page to use in the page count calculation.
Show a Word Frequency Report: Display a sorted list of unique words and how often these were used.
Filter Word Frequency Report: Split the report into two lists using the provided regex.
Filter Regex: Customize which words are split out of the main report. Regex Assistance
Show Filtered Words: Show the words filtered by the above regex.
Show a URL and File Frequency Report: Shows mentioned URLs and files.
Exclude URLs and Files From Word Frequency Report and Word Counts: Excludes URLs and Files from the word-count parsers. Does not apply to characters, sentences, paragraphs, lines, or pages.
Show Selected Character Count: Display a character count for selected text.
Show Selected Word Count: Display a word count for for selected text.
Show Selected Sentence Count: Display a sentence count for selected text.
Show Selected Paragraph Count: Display a paragraph count for selected text. Does not include empty lines.
Show Selected Line Count: Display a line count for selected text.
*Screenshot is not showing the URL/File exclusion report.
... options for URL / file name report and exclusion ...
The following CSS Variables can be overridden in your obsidian.css file.
See the notes for wrapping dates/file/folders in the css comments.
/* obsidian-file-info-panel-plugin */
/* https://github.com/CattailNu/obsidian-file-info-panel-plugin
20230112 updated to fix button styles that broke
*/
/* all other tables */
.tlfFileInfoTable {
display: table;
border: none;
margin: 0em;
padding: 0em;
}
/* the word filter report lists, file open/folder open buttons */
.tlfFileInfoTable100 {
display: table;
border: none;
margin: 0em;
padding: 0em;
width: 100%;
}
.tlfFileInfoRow {
display: table-row;
border: none;
margin: 0em;
margin-bottom: 0.3em;
padding: 0em;
}
.tlfFileInfoCell {
display: table-cell;
border: none;
margin: 0px;
margin-left: 0.5em;
padding: 0em;
text-align: left;
white-space: nowrap;
}
/* applies to word/url footnote */
.tlfFileInfoParagraph {
display: table-cell;
border: none;
margin: 0px;
margin-left: 0.5em;
margin-right: 0.5em;
padding: 0em;
text-align: left;
white-space: normal;
word-break: break-word;
}
.tlfFileInfoLabel {
border: none;
margin: 0px;
margin-right: 0.3em;
padding: 0.3em;
font-size: 0.7em;
color: var(--text-muted);
}
/*
To wrap date text automatically,
replace "white-space: nowrap;" below in tlfFileInfoValue with:
white-space: normal;
word-break: break-word;
*/
.tlfFileInfoValue {
border: none;
margin: 0px;
padding: 0em;
padding-left: 2em;
padding-top: 0.3em;
padding-bottom: 0.3em;
font-size: 0.7em;
font-weight: bold;
height: auto;
white-space: nowrap;
}
.tlfFileInfoValueNumber {
border: none;
margin: 0px;
padding: 0em;
padding-left: 3em;
font-weight: bold;
font-size: 0.7em;
text-align: right;
}
.tlfFileInfoCellButton {
display: table-cell;
border: none;
margin: 0px;
padding: 0.3em;
text-align: left;
margin-left: 0.5em;
padding: 0em;
}
/*
To wrap text in file name / folder name automatically,
replace "white-space: nowrap;" below in tlfFileInfoButton with:
white-space: normal;
word-break: break-all;
*/
.tlfFileInfoButton {
border: none;
margin: 0px;
margin-bottom:0.3em;
margin-top:0.3em;
padding: 0px;
text-align: left;
font-size: 0.7em;
background:none;
color: var(--text-muted);
height: 2em;
width:100%;
max-width:100%;
height:auto;
white-space: nowrap;
}
.tlfFileInfoButton:Hover {
font-weight: bold;
}
.tlfFileInfoTextArea {
margin: 0px;
padding: 0.3em;
font-size: 0.7em;
color: var(--text-muted);
line-height: 1.2;
width: 100%;
height: 8em;
}
Consider reading and sharing one of my books (available through Amazon). There are fantasy, science fiction, novelty art books, non-fiction, and a thriller. Share links to them. Seriously, I really need your help as an author getting the word out. Trying to be an independently-published author is challenging.
https://www.amazon.com/T.-L.-Ford/e/B0034Q6Q2S
You'll also find a bunch of free content and writing/art tools on my personal website.
Featured: Make your own dreamcatcher graphics: http://www.cattail.nu/journal_tools/page_dreamcatcher_art.html
Thank you to those who have taken the time to submit issues on github. Your feedback is helpful!
Addition of document statistics.
Initial release: File name link, date modified, date created, full folder path link.