RuneBook icon indicating copy to clipboard operation
RuneBook copied to clipboard

Reorder / rename local pages

Open TinyRaindrop opened this issue 5 years ago • 5 comments

Original issue here

Right now there's no way of managing local pages apart from uploading them to client, modifying there, and saving again, which puts the page on the last place.

Would be nice to be able to reorder them, maybe rename too (latter is not a priority for me).

TinyRaindrop avatar May 24 '20 13:05 TinyRaindrop

Maybe stupid idea, but currently reordering pages is a minigame of its own.

Dragging can be implemented using SortableJS, for instance, or even manually, using HTML5 features. But how would I go about saving and restoring the order of pages? Pages are not saved in arrays, but rather in objects.

One way I can think of is putting numeric "index" key into each local page and kind of sort the pages by shuffling these keys, then feed the sorted thing into pagelist.tag (not sure how exactly)? Is there a simple way I'm not seeing here?

TinyRaindrop avatar May 27 '20 20:05 TinyRaindrop

Agreed.. though honestly, I'd be happy if I could just rename them in RuneBook...

jeske avatar Aug 11 '20 02:08 jeske

Hey guys im working oin this feature and i just want to know, are we ok with using external packages/libraries for stuff like prompt windows ? electron does not support the classic js prompt(message, defaultValue).......

Turb0Hawk avatar Jan 11 '22 07:01 Turb0Hawk

@Turb0Hawk Runebook uses SemanticUI CSS framewok, which has plenty of JS stuff in it. Modals are might be what you're looking for. Check out this modal example.

TinyRaindrop avatar Jan 12 '22 07:01 TinyRaindrop

thanks bud ! this is my first node/js project since HS sooooo im rusty and lost. I work front/back end in c# so all the help is appreciated

Turb0Hawk avatar Jan 14 '22 04:01 Turb0Hawk