Comments (15)
This is actually exactly what I have configured within my theme. I'm not sure if @ozntel intends to do it this way but just incase anyone else is trying to get the effect:
Yes, I already included within the code and it will be there in the next release
from file-tree-alternative.
I just released the new version. You can update from the community plugins.
These are the updates I could remember of right now:
[+] [-]
Icon Color Adjustment for themesDrag and Drop
to the Folder TreeDrag and Drop
style correction in Files Listdata-path
addition for folderdiv
pinned files
save after eachpin files list
change- Removal of unnecessary state refresh in files view
There are also some optimizations to ensure that the plugin works smoothly.
Hope you will enjoy
from file-tree-alternative.
Hey! I just saw you mentioned me so I thought I'd add to this (if it helps of course).
Wrap Text: this is a bit of a hackier way to do it but I've found this to work.
div.treeview > span,
.nav-file-title-content{
white-space: normal;
}
File Extension Reverse: This works perfectly to reverse the extension tag.
.oz-nav-file-title{
flex-direction: row-reverse;
}
from file-tree-alternative.
Hey @chetachiezikeuzor !!!!!!
You are always helping me Chetachi :) every time you appear with a solution 👍
Thank you so much for two more snippets !!!!!
from file-tree-alternative.
Of course! I'm always happy to help! 🤗
from file-tree-alternative.
Hey, I am glad that the plugin is helpful.
Since this is a quite new plugin that I created, I have still a lot to improve inside. As you might realize within the last couple of days, I have been releasing new versions quite often to ensure that each feature I included works properly for users.
Customization [+] [-]
Since I includeSVG
as an icon for collapse and expand, I set the color from the beginning. I might think giving options to users within the plugin settings.
Option to change the color of the dashed - - - relationship line
This uses var(--text-muted)
to ensure that it is compatible with all plugins. You should be able to edit from your end.
data-path
will be included in the next release for the folders.
Add a different background-color when hover
Color change when Hover on folder and files will be also in the next release. This color will be also active when user drag and drop an external file to file list
or folder name
(folder drop will be in the next release)
Wrap Text
I see that Chetachi has already found a solution for this. I won't include within the plugin snippets.
File Extension on the right
In React, I positioned them actually on the right side specifically. It might be a conflict with your CSS snippet.
Tools on the Right Side of Vault name
I can put it on the list for enhancement in the future. But I need to first finish the basic needs.
Hope this helps a bit
from file-tree-alternative.
Thanks for mentioning me Felipe!
I think the [+][-] should use Obsidian's color variables for its colors, something like --interactive-accent
. That way it would easily match any theme's color scheme without too much work.
I hope you do include the text wrap in the plugin's options because not everyone knows or wants to add css snippets for every plugin. Maybe a toggle for text wrapping would help, along with the option to switch between dashed/solid/no lines.
from file-tree-alternative.
I think the [+][-] should use Obsidian's color variables for its colors, something like
--interactive-accent
. That way it would easily match any theme's color scheme without too much work.
This is actually exactly what I have configured within my theme. I'm not sure if @ozntel intends to do it this way but just incase anyone else is trying to get the effect:
div.treeview svg.toggle{
fill: var(--interactive-accent);
}
from file-tree-alternative.
Ok sweet! Thanks for all your hardwork!
from file-tree-alternative.
Of course! I'm always happy to help! 🤗
Thank you Chetachi !!!!!!
from file-tree-alternative.
Hello @ozntel !
Any enhancements from this list will be more than welcome! I'm sorry if I get hyped and write every suggestion that I could think that could be a good feature for File Tree.
Thanks for your reply and comments about my suggestions!
from file-tree-alternative.
Thanks @ozntel for this update!
from file-tree-alternative.
Hello Mr. @ozntel ,
I'd be glad if you could help me out here:
This wrap snippet from @chetachiezikeuzor isn't working anymore:
div.treeview > span, .nav-file-title-content{ white-space: normal; }
What can I do?
from file-tree-alternative.
Tested it again in a fresh sandbox vault and wrapping works, but text overlaps with the item below (Tested it for long filenames). I'd be glad if you could looking into it.
from file-tree-alternative.
An idea would be to add a wrap text toggle button here to this button menu.
I think many users would love to read long file titles without resizing the sidebar everytime to the maximum width.
from file-tree-alternative.
Related Issues (20)
- [Bug] When dragging selected text, the cursor will not follow
- [BUG] Rename Folder Error HOT 1
- The highlighted folder of selected file is quite obviousness! The folder is only slightly bold. HOT 2
- REGRESSION: VERSION 2.5.2 drag and drop images: drops obsidian url scheme, not wikilinks, as previously (2.3.4) did HOT 5
- Request to add simple folder icon set
- Request - Compatibility with File Color Plugin
- Cannot Rename Folder HOT 1
- markers
- Search without punctuation ?
- File list jumps to beginning when clicking on files HOT 1
- Links dont Update when Folders+ Files are moved
- Hold menu flashes, then disappears on mobile HOT 1
- [Feature Request] add a filter button to the folder to filter folder
- Pin to Top issue HOT 5
- [FR] show root file HOT 2
- [Bug or Feature?] Note no longer pinned after name change HOT 1
- Is there any option to adjust height of each file-name-line in file view? (img attached)
- [Feature Request] Multiple focus folders
- [Feature request] Only load a specified number of files
- [Feature Request] Double click file to open in new window
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from file-tree-alternative.