Mudlet icon indicating copy to clipboard operation
Mudlet copied to clipboard

Add easy ways to move editor items

Open Kebap opened this issue 4 years ago • 8 comments

Brief summary of issue / Description of requested feature:

Add ways to precisely move items in the editor window to a definitive new position.

Steps to reproduce the issue / Reasons for adding feature:

Personally I find the drag & drop via mouse always a bit clumsy and difficult to operate.

Error output / Expected result of feature

Right-click any trigger, alias, etc. in tree view and select from a choice of "rearrange"-options:

  1. Move item one position up (or press ALT+Up)
  2. Move item one position down (or press ALT+Down)
  3. Move item to the top of its group (or press ALT+Pos1)
  4. Move item to the bottom of its group (or press ALT+End)
  5. Move item up a level into its parent group (or press ALT+Left)
  6. Move item down a level into a child group (or press ALT+Right)

Then there is the issue of collapsing/expanding one (or many) group of groups, which could be improved

  1. Collapse the group and all groups inside it (and groups inside them, recursively)
  2. Expand the group and all groups inside it (and groups inside them, recursively)

~I personally don't have a use-case for this yet, but maybe someone would like alphabetical sorting?~

  1. ~Sort all items directly in this group~
  2. ~Sort all items in this group, and in groups inside them, recursively~

Extra information, such as Mudlet version, operating system and ideas for how to solve / implement:

Some of this functionality was inspired from a different GNU application (keepass) we may borrow code from: image There are even more standard-features to be seen there, whereas Mudlet 4.10 currently simply offers copy/paste: image

Kebap avatar Jan 18 '21 09:01 Kebap

I think of this as the hard way of moving items, drag and drop is so simple - it's the standard way of doing this in OS's file managers and many more. Massive right-click menu's are not the norm.

What if we add a way to cut, in addition to the copy? Then you could cut and paste the item exactly where you want.

The key here to Mudlet is simplicity, so not an overload of options that few will use and will give an impression to everyone else that Mudlet is too complicated.

vadi2 avatar Jan 18 '21 09:01 vadi2

Actually I prefer the ALT+Up, ALT+Left style of moving things, it is also an a11y issue. The right-click menu is just another place to list and announce these options at all.

Kebap avatar Jan 18 '21 10:01 Kebap

Keybindings for it sound good :+1:

vadi2 avatar Jan 18 '21 10:01 vadi2

I would not add sort though... order might matter and this is easy way to break things :)

Delwing avatar Jan 18 '21 10:01 Delwing

I'd like to point out that drag and drop does not work at all on Mac OS, so until that gets fixed, any alternative way of reorganising the tree in the GUI is welcome.

brennanyoung avatar Mar 09 '21 11:03 brennanyoung

I play on a high res monitor and using the drag and drop method only gives me a single pixel to target where I want it moved to, it makes it fairly tedious when I accidently make something a child or move it out of the group itself.

jmckisson avatar Mar 05 '24 20:03 jmckisson

This would be a Qt issue - I wonder if there is a way around it as other apps would be facing the same.

vadi2 avatar Mar 05 '24 20:03 vadi2

IRT the earlier comment that drag and drop doesn't work on MacOS I just checked and that does not seem to be the case.

demonnic avatar Mar 05 '24 20:03 demonnic