Page 1 of 1

Intext Bookmarks

Posted: 09.02.2023 14:54
by Stefan
Is there any chance to get "Portable Bookmarks"?
I am talking about auto-creating a Table of Contents that is built from comments that start with NOTE: or similar keywords.

It is a feature that only very few editors have.
It were great to have the TOC always visible in the side panel, but I'd be fine with a pop-up window, too, the way Synwrite handles it.

Posted: 09.02.2023 17:11
by main Alexey
plugin "Intext Bookmarks" does it. it has very short readme: https://github.com/kvichans/cuda_intext ... ter/readme
it gives command to show all found intext-bookmarks in a menu-dlg.

Posted: 09.02.2023 22:42
by Stefan
Whoa. I am impressed. The dialog follows the theme colors, it has a Search field, and I can define my own identifiers. WOW.

You make it hard for me to stick with Synwrite. Which is still my preferred editor (side panels left and right, custom font sizes for all UI elements, vertical toolbars, ...).
But no themes. :cry:

Portable Bookmarks was the one feature, the most important, must-have, that kept me with Synwrite.
Guess the time has come to switch to CudaText. ;)

Thanks a ton!

No intext Bookmarks for CSS

Posted: 01.03.2023 17:48
by Stefan
In CSS files, Cud does not recognize my portable Bookmarks from Synwrite. They work fine in Syn. Cuda has no problem reading them from other file types (ahk, xys, md). But with CSS, nothing shows up. Nor can I insert new intext BM into CSS.

I assume it has to do with line comments?
Or maybe a wrong setting under plugin: Comments: config... ?
Or maybe Syn uses a different CSS lexer than Cud? My Synwrite version is 6.18.2135, the one where lexers are not separate, but packed into one large .lxl file.

What can I do? All ideas are welcome.

Posted: 01.03.2023 19:15
by main Alexey
Seems you use the "Intext Bookmarks" plugin.
maybe it don't support _steam_ comments in CSS. I will see what I can do.

Posted: 01.03.2023 19:31
by Stefan
main Alexey wrote:Seems you use the "Intext Bookmarks" plugin.
Yes, exactly.

You are right, toggling a stream comment does work with CSS. Whereas toggling a line comment does not. This might be the main difference between Syn's portable bookmarks and Cud's intext bookmarks.

Thanks for checking into it.

Posted: 03.03.2023 08:11
by main Alexey
Updated the plugin,only in my Git!
https://github.com/CudaText-addons/cuda ... _bookmarks
use "Install from Git" in addons-manager.

0.8.6 (2023-03-02)
added: support stream comments too, e.g. in lexer CSS (by Alexey T.)

Is it OK in CSS now?

Posted: 03.03.2023 09:51
by Stefan
Hurrah, you did it.
It recognizes all my Synwrite bookmarks. And I can enter new ones with the dialog. As an additional benefit, toggling a stream comment now also works in CSS files.

This means, I will kiss Synwrite goodbye. Feeling a bit sad and sorry, it has served me well over so many years.

But Cuda is better. For general writing as well. You could probably turn it into a full-blown writing-app by adding a few extras.

THANK YOU.

Posted: 03.03.2023 10:37
by main Alexey
I dont have the purpose to make 'the writing app'-- writers (like you) need focusing on the text and less UI elements. and less panels. and no lexers. i cannot reach it.

Posted: 03.03.2023 10:53
by Stefan
Without knowing it, you have already created an editor that is superior to many writing apps. Seriously.

Unfortunately, writers do not know it, either. They put up with slow, overpriced, bloated software. Buggy as hell. You would not believe it. And unlike you, those developers don't care. They might fix a bug here and there, months later, or not at all. No joy. Over the years, I have become disillusioned with all those apps.

Keep up the good work, Alexey. I really appreciate it.