Skip to content

feat: improve session method help UX#92

Merged
ehennestad merged 6 commits into
devfrom
x/issue/037-add-session-method-documentation
May 10, 2026
Merged

feat: improve session method help UX#92
ehennestad merged 6 commits into
devfrom
x/issue/037-add-session-method-documentation

Conversation

@ehennestad
Copy link
Copy Markdown
Collaborator

@ehennestad ehennestad commented May 10, 2026

Fix #37

Summary

  • Rewrite session method help text as user-guide content across the two-photon session methods.
  • Render session method help in a structured HTML popup with clearer headings, lists, and inline code styling.
  • Add keyboard accelerators for the session task mode menu.

Context

Addresses #37 by making session method help more useful from the session task menu, and by making mode switching faster from the menu.

Plus minor fixes and updates of docstrings
Add guide-style help text for two-photon session methods and render it as structured HTML in the help popup. Also add accelerator keys for queue, edit, restart, and help modes in the session task mode menu.
@ehennestad ehennestad merged commit 7a30c26 into dev May 10, 2026
2 checks passed

[idx, functions] = regexp(functionContentStr, 'classdef.*?end', 'start', 'match');
if isempty(idx)
[idx, functions] = regexp(functionContentStr, 'function.*?end', 'start', 'match');

options = [obj.PresetOptions_, obj.CustomOptions_];

if numel(options) == 1
subStringA = strsplit(subStringB{1}, '='); % Split first part @ =

thisLineDivided = [subStringA, subStringB{2}];
if numel(subStringB) == 1
return
end
itemText = strjoin(listItemLines, " ");
htmlLines(end+1, 1) = "<li>" + formatInlineGuideText(itemText) + "</li>"; %#ok<AGROW>
if isstruct(value)
% Recurse into nested structs
nestedFlatStruct = flattenNestedStruct(value, fullName);
flatStruct = [flatStruct, nestedFlatStruct];
end

% Add field to flatStruct
flatStruct(end + 1).name = fullName;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants