GavriYashar / Matlab-Editor-Plugin

Extends features for the matlab editor, Bookmarks, FileStructure, Clipboard stack
MIT License
74 stars 12 forks source link

FileStructure Script Header #120

Open GavriYashar opened 6 years ago

GavriYashar commented 6 years ago

Implement proper tree for header

headers should be definable in properties. %h#%

script.headers = >|•|, --|••|, etc...

image

Irismoon commented 3 years ago

Hi Andreas,

Can I ask currently how to have a header description look at the file structure for each section. Currently, when I add description at the first line of each section, specifically in Matlab is,

%%
%summary of this section

what I got is like this: image It would be great if I could have a brief description for each section here. Thank you very much!

Best, Mango

GavriYashar commented 3 years ago

Hi Mango,

Thank you for reaching out. It's nice to hear my code is being used and useful.

Regarding your issue, this was designed to show the section title only. I would suggest that some keywords should be after the "%", e.g. "%% noise reduction strain -> stress". Something like this. At least that's what we use. We also have system for subsectioning, using different section titles at the start (see image above).

That being said MEP will be deprecated in the future, but I'm currently working (see below) on a MATLAB based "mep" working with future releases (hopefully). This code then can be easily changed by Everyone with at least some enhanced knowledge in MATLAB and the debugger. However this won't work with previous releases, maybe only releases after R2020a or even only after R2021a/b.

Kind regards, Andreas

Me working in a new mep: well, it's a fun project for myself. It will be publicly available, but I'm hoping that most of it's features will be a vanilla MATLAB experience in the future.

Irismoon commented 3 years ago

Hi Andreas,

Thanks for your help. Yeah, the section title really helps me. Thanks for your working and looking forward to the new edition.

Best, Mango