Qlik Community

Suggest an Idea

Vote for your favorite Qlik product ideas and add your own suggestions.

Announcements
IMPORTANT security patches for GeoAnalytics Server available to download: READ DETAILS

Script (and expression) code folding

simonaubert
Partner
Partner

Script (and expression) code folding

Hello all,

 

A missing feature in script (and also expression) editor : code folding.

https://en.wikipedia.org/wiki/Code_folding

"

Code folding is a feature of some text editors, source code editors, and IDEs that allows the user to selectively hide and display – "fold" – sections of a currently edited file as a part of routine edit operations. This allows the user to manage large amounts of text while viewing only those subsections of the text that are specifically relevant at any given time.

Identification of folds can be automatic, most often based on the syntax of the computer language in question, indentation, or manual, either based on an in-band marker (saved as part of the source code) or specified out-of-band, only within the editor.

Many editors provide disclosure widgets for code folding in a sidebar, next to line numbers, indicated for example by a triangle that points sideways (if collapsed) or down (if expanded), or by a [-] box for collapsible (expanded) text, and a [+] box for expandable (collapsed) text. This feature is commonly used by some computer programmers to manage source code files, and is also frequently used in data comparison, to only view the changed text."

code foldingcode folding

 

Best regards,

Simon

Bi Consultant (Dataviz & Dataprep) @ Business & Decision
7 Comments
vadim_pozdnyakov

Must have! That is why I develop large scripts in VSCode or Sublime Text, and not in Qlik.

Patric_Nordstrom
Employee
Employee

Thank you for your feedback on ways to improve our product. While this is something we understand would be useful, it's not on the short-term roadmap. Please continue to show your support for this idea.

Thanks,

Patric

Note that the script editor is based on CodeMirror which offers a lot options

https://qlikviewcookbook.com/2018/07/theming-the-qlik-sense-script-editor/

 

Status changed to: Open - Collecting Feedback
AlexOmetis
Partner
Partner

Another way to theme the editor is using something like the Stylus plugin rather than having to click a bookmarklet to get it to apply. My colleague wrote up how to do that here: Qlik Sense's Dark Themed Data Load Editor - Ometis

p_verkooijen
Partner
Partner

@AlexOmetis wanted to test the dracula theme.

However the style https://userstyles.org/styles/162405/dracula-theme-qlik-sense-data-load-editor seems unavailable. I get a 504 Gateway Time-out

AlexOmetis
Partner
Partner

Yes, UserStyles seems to be having a few issues. It did eventually work for me but it's super slow. I'll see if we can get it hosted somewhere more accessible but still dynamic for updates. But in the meantime we've put a static copy here that you can download and then import into Stylus.

p_verkooijen
Partner
Partner

Thnx.

Ultimately used the getstyles from within the extension. This bring you to https://33kk.github.io/uso-archive/. When you can search for Qlik to import the style

simonaubert
Partner
Partner

Hello @Patric_Nordstrom 

Thanks for your answer. I didn't know this trick (but to be honest, I haven't search).I will see what I can get from it. But at least, I know some persons at the office that will appreciate the ability to set a dark theme  🙂

Best regards,

Simon