Help with formatting module & some feature suggestions

Started by fbfans, July 04, 2026, 01:45:03 AM

Previous topic - Next topic

Paul Squires

@hajubu

I have fixed the TODO parsing. Use the files "modParser.inc", and "modParser.bi" in the development branch:  https://github.com/PaulSquires/tiko/tree/development/src

I tested the new code with the following test variations:
'TODO: This is sample text for "I need to do" in the last line 6
'ToDo: (upper and lowercase)
'    todo: (leading spaces)

/'
'     ToDo: (in multiline comment, upper/lower, leading spaces)
'/
Paul Squires
PlanetSquires Software

hajubu


fbfans

Hello Paul,

I've been testing my formatting module again, and unfortunately it still breaks the auto-indentation. I've attached my code — could you please take a look at it when you have a moment? Thank you.

I noticed that you're already preparing the next release and I saw your planned work. I think there's still some room to improve the overall user experience of Tiko, and while you may already be working on some of these, I feel the following issues are quite important:

1.Sidebar refresh problem: When opening or closing files, the sidebar doesn't update synchronously, and there's no manual refresh button either.
2.Function list collapse/expand is not working (I mentioned this in my first post). The Explorer and Bookmarks panels work fine, but the Function list doesn't collapse/expand properly. This makes it less intuitive when many files are open.

3.Bookmarks show garbled text for Chinese characters, and only work correctly when the file encoding is ANSI. You previously fixed the garbled text issue in the TODO list — could you perhaps apply a similar elegant fix here?
4.Suggestion for hover hints on #include lines: For example, on #include once "AfxNova/Dwstring.inc", it would be helpful to show a tooltip like "Dwstring.inc, right-click to open". It took me a long time to discover that Tiko even supports this feature.
5.Localization language selection: Since Tiko already supports several languages, could we have a listbox for selecting the language? It would be much more user-friendly to double-click a file directly.

Thank you for your work on this great editor. I don't mean to put any pressure on you — I just hope that, while you're enjoying coding, you might find some time to address issues like #1 and #2, which would significantly improve the user experience.

Wish you happy coding!

Paul Squires

@fbfans

Thanks for the source file and suggestions. I will look at the formatter and your suggestions as soon as I can. I have a short list of things to fix/implement before I can get to your list.

QuoteSidebar refresh problem: When opening or closing files, the sidebar doesn't update synchronously, and there's no manual refresh button either.
Maybe you can explain this one a bit more. Opening/Closing files should automatically reload the Explorer and Functions panes (maybe the bookmarks list is not being cleared and refreshed?).

What I do need to work on is updating the Functions list in real time as the user types in a Sub/Function  End Sub/End Function combination WITHOUT SAVING. Currently, it is the act of saving the file that triggers a re-parsing of the code thereby updating the Functions list. I plan to switch this to either use continuously scanning background threads, or simply do a re-parse of the code when the ENTER key is pressed.


Paul Squires
PlanetSquires Software