Mudlet
Mudlet copied to clipboard
Add easy ways to move editor items
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:
- Move item one position up (or press ALT+Up)
- Move item one position down (or press ALT+Down)
- Move item to the top of its group (or press ALT+Pos1)
- Move item to the bottom of its group (or press ALT+End)
- Move item up a level into its parent group (or press ALT+Left)
- 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
- Collapse the group and all groups inside it (and groups inside them, recursively)
- 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?~
- ~Sort all items directly in this group~
- ~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:
There are even more standard-features to be seen there, whereas Mudlet 4.10 currently simply offers copy/paste:
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.
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.
Keybindings for it sound good :+1:
I would not add sort though... order might matter and this is easy way to break things :)
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.
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.
This would be a Qt issue - I wonder if there is a way around it as other apps would be facing the same.
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.