GithubHelp home page GithubHelp logo

cannibalox / logseq-custom-files Goto Github PK

View Code? Open in Web Editor NEW
98.0 8.0 17.0 45 KB

logseq custom.js and custom.css utilities : resize query table columns, hide namespaces prefixes, better-sidebar......

License: MIT License

CSS 33.31% JavaScript 66.69%
logseq utilities table resize namespace

logseq-custom-files's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

logseq-custom-files's Issues

Add a 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 :)

Possible improvement

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.

Feature request: namespace prefixes collapser in left sidebar and for tags

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:

Making the collapser available in the left sidebar:

image

Activating the collapser for tags

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.

image

Sidebar not horizontal in 0.10

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:
image
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.

Better Sidebar - slight issue

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!!

====

custom css.txt
custom js.txt

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.