emoon / rocket

GNU Rocket Git mirror

Home Page:rocket.sf.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

looping time-mode

pixelmager opened this issue · comments

Select a time-range (simply shift select, like selecting keys) - press e.g. ctrl+l to mark this range for looping, press ctrl+space to play looped

Would looping between two bookmarks be good enough? Or would it be better to make it behave like bookmarks? ie you place two marks (you do do with b but with l or something instead) and when you start with ctrl+space with in two points it will loop there. That means that loop points can be saved or used for later. Using bookmarks only work make it easier to implement though.

Bookmarks could work. I think personally I would prefer having a separate type of marker, as I tend to use bookmarks for high-level mark-up. While I do like the idea of being able to save loop-points between sessions, I think my most common use-case would be to use- and discard them frequently during a workflow.

Right.

So the way it will work then is that I add Loopmarkers. They will work very similar to bookmarks and when you have the cursor between two of them and press ctrl + space it will loop. If there is no loop markers nothing will happen and the code will always just pick the first one above the cursor and the next bellow it.

Sounds good?

Sounds perfect. I think it may make sense UI-wise to mark the looping area too ( probably only when your cursor is in between loop-markers...), like one of these:

loop01

loop02

I guess if you just leave loop markers around in the file randomly, it will do this marking quite a lot, so maybe the thin line of the above two is better?

Yeah one can have a thin line but then if you have 3 loop points should there be a line between 2 and 3 then or do you one always have do add pair of loop points?

I was thinking you would just add them the same as bookmarks, and whichever loop-interval you were in, would be the one that looped. Hence only the current interval would show up as a line on the side.

Yes but say in the above screenshot you stand on the line 130 and then way further down (say 1000) you have another loopmark should there be a mark to the left down to that line?

Yea, I would think there was a line down from 130->1000 then. My thinking is it's a temporary thing, not something you leave in there. So you are not going to end up with just colouring the entire thing... but that would definitely happen quickly if using several intervals. It's not that important :)

Btw. may I suggest stippling the colors instead of using a third one, when loopmarks and bookmarks overlap?

double_mark

Alright that sounds like a plan.