Problem with Ambient mimetypes editor
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Papiosaur
    Posts: 2355 from 2003/4/10
    From: France
    Hello,

    when i edit a mimetype via contextual menu, seems the mimetype is not saved or bad saved (i have 8 entries and in the saved file only 6) when i click on Ok on the two window open.

    Same thing when i edit the Mimetype wia FlowStudio, i save it and after i launch Mimetype editor, the entries are not complete.

    Maybe an information window show "Mimetype saved" will be fine after click ok on the second window "Ambient MIME Editor".
  • »04.03.25 - 11:56
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    igracki
    Posts: 428 from 2003/2/25
    From: Berlin
    Can't repoduce it here which mimetype did you edit?
  • »04.03.25 - 18:17
    Profile Visit Website
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Papiosaur
    Posts: 2355 from 2003/4/10
    From: France
    It's maybe a problem from me... i have cloned the mimetype to do modifications on another and renamed original with the suffix "_", i thank it was disabled but not :-D

    I think it's the source of my problems

    I will reedit without this "clone" and comeback here if i have problems
  • »04.03.25 - 18:41
    Profile Visit Website
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Papiosaur
    Posts: 2355 from 2003/4/10
    From: France
    Seems there his a limitation for the character number in a command line...

    If i add this line:

    Quote:

    cmark-gfm -e table -e tasklist -e strikethrough -e autolink -e tagfilter --smart --hardbreaks %sf >>RAM:T/markdown.html

    Ambient remove the ">>RAM:T/markdown.html" after a save and relaunch of the MIME editor.

    [EDIT] A strange thing, the file is not changed (line is complete in the mimetypefile) but the line is not showed completly in the editor and the add of this command result to markdown.html don't work -> there is an output in a window instead ">>RAM:T/markdown.html"

    this is the cmark-gfm executable to test:
    https://www.morphos-storage.net/upload/test/cmark-gfm

    and this is the mimetype:
    https://www.morphos-storage.net/upload/test/x-markdown to copy to SYS:Prefs/Ambient/Filetypes/text/
  • »08.03.25 - 09:50
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    igracki
    Posts: 428 from 2003/2/25
    From: Berlin
    As a workaround you could "echo" the command-line in two or three steps to a file, then execute this file.
    For example:
    Each line is a own command:
    Code:

    Echo NOLINE >t:cmark "cmark-gfm -e table -e tasklist -e strikethrough"
    Echo >>t:cmark " -e autolink -e tagfilter --smart --hardbreaks %sf >>RAM:T/markdown.html"
    Execute t:cmark


    Note the NOLINE and the single ">" in the first comand and the double ">>" in the second!
  • »09.03.25 - 09:16
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    polluks
    Posts: 817 from 2007/10/23
    From: Gelsenkirchen,...
    By the way T:markdown.html is a little bit smarter...
    Pegasos II G4: MorphOS 3.9, Zalman M220W · iMac G5 12,1 17", MorphOS 3.18
    Power Mac G3: OSX 10.3 · PowerBook 5,8: OSX 10.5, MorphOS 3.18
  • »12.03.25 - 13:20
    Profile