{
    "content": [
        {
            "type": "text",
            "text": "# sensible-editor(1) (man)\n\n## TLDR\n\n> Open the default editor.\n\n- Open a file in the default editor:\n  `sensible-editor {{path/to/file}}`\n- Open a file in the default editor, with the cursor at the end of the file:\n  `sensible-editor + {{path/to/file}}`\n- Open a file in the default editor, with the cursor at the beginning of line 10:\n  `sensible-editor +10 {{path/to/file}}`\n- Open 3 files in vertically split editor windows at the same time:\n  `sensible-editor -O3 {{path/to/file1 path/to/file2 path/to/file3}}`\n\n*Source: tldr-pages*\n\n---\n\n**Summary:** sensible-editor - sensible editing\n\n**Synopsis:** sensible-editor [OPTIONS...]\n\n## See Also\n\n- environ(7)\n- select-editor(1)\n- editor(1)\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (2 lines)\n- **DESCRIPTION** (14 lines)\n- **SEE ALSO** (4 lines)\n- **BUGS** (3 lines)\n- **STANDARD** (7 lines)\n\n## Full Content\n\n### NAME\n\nsensible-editor - sensible editing\n\n### SYNOPSIS\n\nsensible-editor [OPTIONS...]\n\n### DESCRIPTION\n\nsensible-editor makes sensible decisions on which editor to call.  Programs in Debian can use\nthis script as their default editor.  sensible-editor try to do in the following order:\n\n1      if VISUAL environment variable exists, execute VISUAL [OPTIONS]\n\n2      if EDITOR environment variable exists, execute EDITOR  [OPTIONS]\n\n3      source the contents of file ~/.selectededitor  and,  if  SELECTEDEDITOR  environment\nvariable exists execute SELECTEDEDITOR  [OPTIONS]\n\n4      run editor [OPTIONS] command\n\n5      finally run nano-tiny [OPTIONS] command\n\n### SEE ALSO\n\nenviron(7) for documentation of the EDITOR, VISUAL variables\nselect-editor(1) for changing a user's default editor.\neditor(1) for default system wide editor.\n\n### BUGS\n\nThis  command  is  protected  against trivial fork bomb, when user set EDITOR=sensible-editor\nwider loops are still possible.\n\n### STANDARD\n\nDocumentation of behavior of sensible-utils under a debian system is available under  section\n11.4 of debian-policy usually installed under /usr/share/doc/debian-policy (you might need to\ninstall debian-policy)\n\n\n\nDebian                                       14 Nov 2018                          SENSIBLE-EDITOR(1)\n\n"
        }
    ],
    "structuredContent": {
        "command": "sensible-editor",
        "section": "1",
        "mode": "man",
        "summary": "sensible-editor - sensible editing",
        "synopsis": "sensible-editor [OPTIONS...]",
        "tldr_summary": "Open the default editor.",
        "tldr_examples": [
            {
                "description": "Open a file in the default editor",
                "command": "sensible-editor {{path/to/file}}"
            },
            {
                "description": "Open a file in the default editor, with the cursor at the end of the file",
                "command": "sensible-editor + {{path/to/file}}"
            },
            {
                "description": "Open a file in the default editor, with the cursor at the beginning of line 10",
                "command": "sensible-editor +10 {{path/to/file}}"
            },
            {
                "description": "Open 3 files in vertically split editor windows at the same time",
                "command": "sensible-editor -O3 {{path/to/file1 path/to/file2 path/to/file3}}"
            }
        ],
        "tldr_source": "official",
        "flags": [],
        "examples": [],
        "see_also": [
            {
                "name": "environ",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/environ/7/json"
            },
            {
                "name": "select-editor",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/select-editor/1/json"
            },
            {
                "name": "editor",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/editor/1/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 14,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "BUGS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "STANDARD",
                "lines": 7,
                "subsections": []
            }
        ]
    }
}