Ambient 2.0 ideas, plans and general brainfarts
  • jPV
  • Yokemate of Keyboards
    Yokemate of Keyboards
    jPV
    Posts: 2087 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: 2319 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