Inkscape.org
Beyond the Basics Using commands which are not in the command line
  1. #1
    amir amir @amir

    I want to use the File > Revert functionality, which is not present in the default command line for the terminal. I want to use this functionality in my application as a shell command, how could i get access to Revert for using it as a command in terminal?

     

    Cheers!

  2. #2
    brynn brynn @brynn

    Hhmm, you probably already found it.  But just in case, here's a reference guide for the commandline.  https://inkscape.org/en/doc/inkscape-man.html

    Or else maybe someone else will know the answer.

  3. #3
    amir amir @amir

    The link i found already, my problem is that the File>Revert is not present there as a command 😪

  4. #4
    ronburk ronburk @ronburk
    *

    Not sure what you're trying to accomplish. File|Revert undoes changes since the last save in the current Inkscape session, AFAIK. If that's really what you want, the "verb" called "FileRevert" seems to have been around a while. For example, I created a file called foo.svg that had a single circle with an ID of "path10". I then executed this:

    inkscape foo.svg --select=path10 --verb=EditCut --verb=FileRevert

    This selected my circle, then deleted it, then reverted the file (which caused a "do you want to do that" prompt, but that's a separate issue).

  5. #5
    amir amir @amir

    Thanks for your reply. Your command opens up a new inkscape window. What i wanted is to do the revert in an existing window without opening a new window again. Do you have any idea how that might be done?

  6. #6
    Maren Hachmann Maren Hachmann @Moini

    How are you opening the file you're working on on the command line?

    Inkscape will either work all via command line, or all via opening by hand. A mix is not possible (only through extensions there's a kind of a mix).

Inkscape Inkscape.org Inkscape Forum Beyond the Basics Using commands which are not in the command line