Ambient 2.0 ideas, plans and general brainfarts
  • jPV
  • Yokemate of Keyboards
    Yokemate of Keyboards
    jPV
    Posts: 2096 from 2003/2/24
    From: po-RNO
    Quote:

    Papiosaur wrote:
    Possibility to clone a file with a different name in contextual menu.


    It's quite easy to add the functionality by mime/filetype configuration.

    I don't remember if I've made these myself originally or got from somewhere else and modified a bit later, but add these to the SYS:Prefs/Ambient/filetypes/internal/x-morphos-globalaction-file file (or edit via Ambient->Mime->Internal settings):
    Code:
    Action
    Name Duplicate
    Event Menu
    Command AMIGADOS Copy "%sp" "%sp.copy" CLONE
    Flag unquoted
    End
    Action
    Name Duplicate as...
    Event Menu
    Command AMIGADOS Copy "%sp" `RequestFile FILE="%sf.copy" TITLE="Enter New Filename"` CLONE
    Flag cd source
    Flag unquoted
    End


    And to duplicate directories, edit the SYS:Prefs/Ambient/filetypes/internal/x-morphos-globalaction-directory file:
    Code:
    Action
    Name Duplicate
    Event Menu
    Command AMIGADOS Copy "%sp" "%sp.copy" ALL CLONE QUIET
    Flag unquoted
    End
    Action
    Name Duplicate as...
    Event Menu
    Command AMIGADOS Copy "%sp" `RequestFile FILE="%sf.copy" TITLE="Enter New Filename"` ALL CLONE QUIET
    Flag cd source
    Flag unquoted
    End
  • »30.10.24 - 13:59
    Profile Visit Website
  • Moderator
    Kronos
    Posts: 2323 from 2003/2/24
    With the latest PanelApp alpha I'd say its time to get concrete here.

    Again assuming worst (best?) case and a mid 2025 MorphOS 3.20 release this should be in there:
    - add an "Ambient.library" that will give access to prefs files (currently in PanelApp), bookmarks, open listers and so on
    - make Prefspanes work as external classes and move at least the Panel one to it
    - expand AppWindow/AppMessage so dragging can be monitored by non Ambient windows

    Depending one timing this may be in 3.20 or get pushed to 3.22 (but will be done one way or the other):
    - move all other Prefspanes into external classes
    - allow subclassing Listers
    - make search results a proper Lister (subclass)

    Everything else mentioned here is considered optional and might or might not be addessed later on.
  • »01.11.24 - 07:41
    Profile
  • jPV
  • Yokemate of Keyboards
    Yokemate of Keyboards
    jPV
    Posts: 2096 from 2003/2/24
    From: po-RNO
    Quote:

    Papiosaur wrote:
    In Shell, seems CTRL + C, CTRL + X, CTRL + V don't work, only via contextual menu.

    The normal rcommand+c/x/v works in the Shell, just like on Amiga, MorphOS, and Mac everywhere usually. For some reason someone has decided to configure inconsistent Windows-alike shortcuts (ctrl) to Ambient, which causes confusion.

    Actually rcommand+c/x/v works in Ambient too, despite what you have configured in the Ambient Hotkeys settings, but there seems to be a small illogigal issue with it.. it doesn't paste to the current directory, but to a selected directory...

    In MUI settings you can have two shortcuts for the same operation, so both cmd+c/x/v and ctrl+c/x/v are supported there. Maybe Ambient and Shell settings should support two shortcuts too, to get it work in both ways.


    Quote:

    If possible to add them, it will be usefull i think.

    You can configure them in the Shell (MUIConsole) prefs yourself, if you want to change it from command to control.
  • »06.11.24 - 05:42
    Profile Visit Website
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Papiosaur
    Posts: 2227 from 2003/4/10
    From: France
    Thanks jPV for all this informations!

    I have just tested and rcmd+c rcmd+v work but rcmd + x dont work in shell (there is no entry in the menu and in available functions in prefs.

    @Kronos: It will be fine to have the same hotkeys for clipboard in Ambient and shell.

    [EDIT] i have i bizarre thing with Mixer, when i connect an headphones to mini jack and play sound, if i move the balance, the volume down automaticaly... (PowerMac G5)
  • »06.11.24 - 06:06
    Profile Visit Website
  • jPV
  • Yokemate of Keyboards
    Yokemate of Keyboards
    jPV
    Posts: 2096 from 2003/2/24
    From: po-RNO
    Quote:

    Papiosaur wrote:
    I have just tested and rcmd+c rcmd+v work but rcmd + x dont work in shell (there is no entry in the menu and in available functions in prefs.

    Ah right. As the Shell isn't a text editor and most of the seen text isn't editable even though it's copyable, it's probably been easiest to disable cutting completely.

    Quote:

    i have i bizarre thing with Mixer, when i connect an headphones to mini jack and play sound, if i move the balance, the volume down automaticaly...

    Yeah, happens on my Mac mini with external speakers too... but not with Powerbooks's internal speakers.
  • »06.11.24 - 07:26
    Profile Visit Website
  • MorphOS Developer
    geit
    Posts: 1049 from 2004/9/23
    In shell CTRL-C, CTRL-D and so on are already reserved for sending signals to the active tasks.

    This behavior even predate the clipboard existence.

    On linux you need to add the shift key to the mix or use the menu. So shift-ctrl-c is used to copy text.

    This cannot be fixed without breaking the behavior on one or the other side.
  • »06.11.24 - 10:30
    Profile
  • jPV
  • Yokemate of Keyboards
    Yokemate of Keyboards
    jPV
    Posts: 2096 from 2003/2/24
    From: po-RNO
    Quote:

    geit wrote:

    In shell CTRL-C, CTRL-D and so on are already reserved for sending signals to the active tasks.

    Right, somehow forgot that. So, it would be better just to use the traditional Cmd/Amiga qualifier everywhere for consistency. Too bad M$ has teached some bad habits to people :)
  • »06.11.24 - 11:51
    Profile Visit Website
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Papiosaur
    Posts: 2227 from 2003/4/10
    From: France
    Quote:

    jPV a écrit :
    Right, somehow forgot that. So, it would be better just to use the traditional Cmd/Amiga qualifier everywhere for consistency. Too bad M$ has teached some bad habits to people :)


    Left CMD and Right CMD will be nice for left-handed and right-handed :-)
  • »06.11.24 - 12:07
    Profile Visit Website
  • jPV
  • Yokemate of Keyboards
    Yokemate of Keyboards
    jPV
    Posts: 2096 from 2003/2/24
    From: po-RNO
    Quote:

    Papiosaur wrote:
    Add possibility to close "Ambient Output Window" with ESCAPE key will be fine too.


    It's a standard console output window and I don't think it can be made to close with any custom key presses.

    You can close it with whatever keyboard shortcut you have defined in MorphOS Preferences -> IControl -> Active Window: Close. If you have set esc to close it, then it'll be closed with the esc key :)
  • »09.11.24 - 18:18
    Profile Visit Website
  • jPV
  • Yokemate of Keyboards
    Yokemate of Keyboards
    jPV
    Posts: 2096 from 2003/2/24
    From: po-RNO
    Quote:

    Papiosaur wrote:
    Thanks a lot jPV! Why it's not activated by default? It will be better no?


    Yeah... I think "MUI Preferences -> Keyboard -> Windows -> Close" is set to the Esc key by default to close any MUI windows with the Esc key, so it would also be the same to activate the generic IControl window close to Esc too? Maybe ASiegel should configure the MorphOS defaults to this?

    BTW. I have configured my MUI and MorphOS settings to close windows with the Ctrl-Esc instead, then I can avoid accidental window closes if I try to press the Esc key to abort something etc...
  • »10.11.24 - 15:59
    Profile Visit Website