cannibalox / logseq-custom-files Goto Github PK
View Code? Open in Web Editor NEWlogseq custom.js and custom.css utilities : resize query table columns, hide namespaces prefixes, better-sidebar......
License: MIT License
logseq custom.js and custom.css utilities : resize query table columns, hide namespaces prefixes, better-sidebar......
License: MIT License
I took some of your code here (mainly the part which makes namespaces more pleasant) and changed it a little for a theme I am working on.
I would like to put my theme on GitHub but unfortunately this repository does not contain a license. Because there is no license, your code is not open source nor free. So I cannot use, redistribute or modify it.
I would recommend that you add an open source license, which would allow me to reuse some of your code while you still retain the copyright. Thank you :)
Hey!
I think that in the script to make the namespaces shorter there is a part which doesn't work.
In the file custom.js at this line you have 'a.page-ref[data-ref*="/"]:not(.hidden-namespace)'
. If I understand it correctly, the :not(.hidden-namespace)
part should ensure that nodes with that class are not selected.
But when I put a console.log(nmsp)
right after that part it logged a NodeList
which still included all the nodes with that class.
So I think maybe what happens is that the script processes every node everytime it runs. I'm not entirely sure though, just thought I'd point it out.
I was wondering how to add the new features like the background image and properties for references.
it would be really cool if this was an installable plugin from the logseq plugin marketplace: https://github.com/logseq/marketplace
I really love these utilities! The namespace collapser is one that I really needed, and I'm glad I stumbled upon your project.
My only suggestions are the following:
Currently, the presence of a hashtag at the start of a page name (for tags) prevents the collapsing action. I use hashtags/tags for their distinct styling, but would benefit from the collapsing as well.
I know you haven't touched this in a while, but I really like what you did here. Any chance you can fix the sidebar script for it to work in the new version? it looks like this to me:
Thanks in advance, and I understand if you have moved on to other things. I'll be using the tools without the sidebar until then.
hello! I just want to first say thank you so much for the better sidebar! It was exactly what I needed!
HOWEVER, For some reason, when I "collapse" a page it will not open again!
I did not previously have a .js file - so I simply downloaded yours and put it in the logseq folder.
I did have a custom.css file for a theme I am using, so I simply copied yours and added it to the bottom.
I have attached the .js & the .css files I am using. I'd appreciate any help!!
====
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.