::new;

Things you’d like to miss in the future...
Forum rules
:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:

:info: Please include the following information:
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".

:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:
Post Reply
jacky
XYwiki Master
Posts: 3106
Joined: 23 Aug 2005 22:25
Location: France
Contact:

::new;

Post by jacky »

Ok, I'm filling this under bug because I think it's one.

I have a problem with the command new, and the fact that when triggered it goes into rename mode automatically. This should not be the case, or at least there need an optional parameter to disable this behavior.

Also, it gets weird/unexpected result right now, when other commands are used after. For instance, try this when you have one item selected on List ::new a::selpos 1, 2
Sure the first two items get selected, but the first one doesn't have a name shown, and we're still in rename mode for the newly-created file "a", or so it seems ! Because pressing enter to validate gets an error message like we're trying to rename the first item (without a name visible at that time) !!
And indeed, typing in "foobar" and pressing enter renames that first item, not the one just created, though it was it the one that appeared to be on rename mode.

I found a way around it using focus (::focus t::focus l) but I think that we should have a paramater to not go in rename mode. And maybe, if this parameter isn't set, the script execution shouldn't go on until the rename mode is "closed" ?
Proud XYplorer Fanatic

admin
Site Admin
Posts: 66431
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: ::new;

Post by admin »

Code: Select all

      ' syntax: new [name], file|dir, [source], [r]
      '   r = invoke rename mode after creation
Delivery tomorrow (along with <clipboard>)... :)

jacky
XYwiki Master
Posts: 3106
Joined: 23 Aug 2005 22:25
Location: France
Contact:

Re: ::new;

Post by jacky »

admin wrote:

Code: Select all

      ' syntax: new [name], file|dir, [source], [r]
      '   r = invoke rename mode after creation
Delivery tomorrow (along with <clipboard>)... :)
Awesome! :D
Proud XYplorer Fanatic

Post Reply