Skip to content

logseq custom.js and custom.css utilities : resize query table columns, hide namespaces...

Notifications You must be signed in to change notification settings

rlilloy/logseq-custom-files

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

logseq-custom-files

custom.js and custom.css utilities for Logseq.

current version v20220331

  • query table view : add handles on the query table headers to resize column width (not persistent) 20220312_NUC8_M49yriOEAH

  • namespace prefixes collapser : collapse namespace prefixes eg: [[prefix/page/test]] becomes [[../test]] (use the hover tootip to see the original name or enter edit mode) 20220314_NUC8_cMu56YIkrd

How-to use/install

  • if you are not using any custom.js1 or custom.css, copy the files into your %graph-name%/logseq/ folder.
  • alternatively, if you don't want to overwrite your current files or are only interested in some of the utilites, open the each file with a text editor/code editor then copy-paste the relevant sections into your own custom.js/custom.css files (some utilities require to copy sections from both custom.js and custom.css to work, also make sure to include the mutation observer declaration at the start of the custom.js), use the search function to find the relevant snippets delimited by comments with descriptive names.

help me improve the utilities

  • I'm glad to accept Pull Requests if you know how to improve or optimize the utilities
  • if you find this useful, you can also buy me a coffee :)

    ko-fi

more js snippets and css customizations are coming soon, stay tuned

changelog

  • v20220331 : fix sorting : resizer handle was overlapping the table headers. moved style to custom.css
  • v20220329 : fix for advanced queries

Footnotes

    • custom.js has been introduced in logseq on 2021-11-10, see details here https://github.com/logseq/logseq/pull/2943
    • the custom.js file is not created by the default installer, it has to be created manually in /logseq
    • Before executing the code, the user will be asked for execution permission.
    • When the content of the custom.js file is modified, it needs to be restarted or refreshed to take effect.

About

logseq custom.js and custom.css utilities : resize query table columns, hide namespaces...

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 72.8%
  • CSS 27.2%