org-brain icon indicating copy to clipboard operation
org-brain copied to clipboard

[Suggest] Add viewport feature

Open tumashu opened this issue 3 years ago • 5 comments

We can add many viewport and split a brain map to many maps with different viewport.
the default viewport is "all" viewport.

tumashu avatar Nov 11 '20 06:11 tumashu

Basically what this mean is supporting to have multiple *org-brain* buffers at the same time?

Kungsgeten avatar Nov 11 '20 07:11 Kungsgeten

Basically what this mean is supporting to have multiple *org-brain* buffers at the same time?

this is an approach

other approaches may:

  1. adding some viewport buttons to org-brain buffer, when I click one button, i can switch to a viewport of current brain.
  2. add a switch-viewport command, when run this command, brain switch viewport.

tumashu avatar Nov 11 '20 08:11 tumashu

org-brain-visualize is currently designed to only use one buffer. However your idea of multiple viewports could still be used, but then you couldn't split the frame and have different views in different windows, which could be useful. If you want to temporarily save viewports my current suggestion would be to pin the entries you want to switch between.

Kungsgeten avatar Nov 11 '20 11:11 Kungsgeten

Would it be more involved than just making all the variables buffer local (then just letting the user rename the org-brain buffer and org-brain-visualize again)?

vigilancetech-com avatar May 29 '21 00:05 vigilancetech-com

@Kungsgeten I've made all the variables buffer local and it appears to work (being able to change the visualize buffer name and fire up another one where the two buffers work independently of each other).

Expect a PR here in a bit.

vigilancetech-com avatar May 29 '21 13:05 vigilancetech-com