We have moved to a new Sailfish OS Forum. Please start new discussions there.

Revision history [back]

click to hide/show revision 1
initial version

posted 2014-07-20 14:05:59 +0200

Wiki: How to edit qml and configuration files with TinyEdit

Edits to the Jolla configuration files require a text editor such as nano or vim, but they have their own problems for inexperienced users. For small edits TinyEdit by ovekaaven is sufficient. As a bonus it supports copy/paste from Jolla GUI while terminal based editors do not.

TinyEdit can be found in JollaStore.

Devel-su requires devel mode enabled.


Running TinyEdit from the command line

To edit qml or configuration files from the command line do

devel-su
harbour-tinyedit /path/to/file/filename.qml

Pay attention to privileges; you cannot edit files that require root access unless you use devel-su. The files under /home/nemo/ and its subdirectories do not usually require devel-su, but the rest do.

Be extra careful with end of lines.


How to change TinyEdit font size

By default TinyEdit font is too big to handle long lines comfortably. You can change the font size in the EditPage.qml of TinyEdit.

Run

harbour-tinyedit /usr/share/harbour-tinyedit/qml/pages/EditPage.qml

and change this part

    TextArea {
        id: area
        width: page.width
        selectionMode: TextEdit.SelectCharacters
        focus: true
        background: null
        onTextChanged: unsavedChanges = true
    }

to look like this:

    TextArea {
        id: area
        width: page.width
        selectionMode: TextEdit.SelectCharacters
        focus: true
        background: null
        onTextChanged: unsavedChanges = true
        font.pixelSize: Theme.fontSizeExtraSmall
    }

Eg. add the line font.pixelSize: Theme.fontSizeExtraSmall. Then save the changes and close TinyEdit.

You can find more font size options here.

Wiki: How to edit qml and configuration files with TinyEdit

Edits to the Jolla configuration files require a text editor such as nano or vim, but they have their own problems for inexperienced users. For small edits TinyEdit by ovekaaven is sufficient. As a bonus it supports copy/paste from Jolla GUI while terminal based editors do not.

TinyEdit can be found in JollaStore.

Devel-su requires devel mode enabled.


Running TinyEdit from the command line

To edit qml or configuration files from the command line do

devel-su
harbour-tinyedit /path/to/file/filename.qml

Pay attention to privileges; you cannot edit save the files that require root access unless you use devel-su. The files under /home/nemo/ and its subdirectories do not usually require devel-su, but the rest do.

Be extra careful with end of lines.line endings (EOL). Long lines get wrapped to next line, but they will still be correct unless you remove the invisible end-of-line-character.


How to change TinyEdit font size

By default TinyEdit font is too big to handle long lines comfortably. You can change the font size in the EditPage.qml of TinyEdit.

Run

devel-su
harbour-tinyedit /usr/share/harbour-tinyedit/qml/pages/EditPage.qml

/usr/share/harbour-tinyedit/qml/pages/EditPage.qml

and change this part

    TextArea {
        id: area
        width: page.width
        selectionMode: TextEdit.SelectCharacters
        focus: true
        background: null
        onTextChanged: unsavedChanges = true
    }

to look like this:

    TextArea {
        id: area
        width: page.width
        selectionMode: TextEdit.SelectCharacters
        focus: true
        background: null
        onTextChanged: unsavedChanges = true
        font.pixelSize: Theme.fontSizeExtraSmall
    }

Eg. In short just add the line font.pixelSize: Theme.fontSizeExtraSmall. Then save the changes and close TinyEdit.

You can find more font size options here.

Wiki: How to edit qml and configuration files with TinyEdit

Edits to the Jolla configuration files require a text editor such as nano or vim, but they have their own problems for inexperienced users. For small edits TinyEdit by ovekaaven is sufficient. As a bonus it supports copy/paste from Jolla GUI while terminal based editors do not.

TinyEdit can be found in JollaStore.

Devel-su requires devel mode enabled.


Running TinyEdit from the command line

To edit qml or configuration files from the command line do

devel-su
harbour-tinyedit /path/to/file/filename.qml

Pay attention to privileges; you cannot save the files that require root access unless you use devel-su. The files under /home/nemo/ and its subdirectories do not usually require devel-su, but the rest do.

Be extra careful with line endings (EOL). Long lines get wrapped to next line, but they will still be correct unless you remove the invisible end-of-line-character.


How to change TinyEdit font size

By default TinyEdit font is too big to handle long lines comfortably. You can change the font size in the EditPage.qml of TinyEdit.

Run

devel-su
harbour-tinyedit /usr/share/harbour-tinyedit/qml/pages/EditPage.qml

and change this part

    TextArea {
        id: area
        width: page.width
        selectionMode: TextEdit.SelectCharacters
        focus: true
        background: null
        onTextChanged: unsavedChanges = true
    }

to look like this:

    TextArea {
        id: area
        width: page.width
        selectionMode: TextEdit.SelectCharacters
        focus: true
        background: null
        onTextChanged: unsavedChanges = true
        font.pixelSize: Theme.fontSizeExtraSmall
    }

In short just add the line font.pixelSize: Theme.fontSizeExtraSmall. Then save the changes and close TinyEdit.

You can find more font size options here.

Wiki: How to edit qml and configuration files with TinyEdit

Edits to the Jolla configuration files require a text editor such as nano or vim, but they have their own problems for inexperienced users. For small edits TinyEdit by ovekaaven is sufficient. As a bonus it supports copy/paste from Jolla GUI while terminal based editors do not.

TinyEdit can be found in JollaStore.

Devel-su requires devel mode enabled.


Running TinyEdit from the command line

To edit qml or configuration files from the command line do

devel-su
harbour-tinyedit /path/to/file/filename.qml

Pay attention to privileges; you cannot save the files that require root access unless you use devel-su. The files under /home/nemo/ and its subdirectories do not usually require devel-su, but the rest do.

Be extra careful with line endings (EOL). Long lines get wrapped to next line, but they will still be correct unless you remove the invisible end-of-line-character.


How to change TinyEdit font size

By default TinyEdit font is too big to handle long lines comfortably. You can change the font size in the EditPage.qml of TinyEdit.

Run

devel-su
harbour-tinyedit /usr/share/harbour-tinyedit/qml/pages/EditPage.qml

and change this part

    TextArea {
        id: area
        width: page.width
        selectionMode: TextEdit.SelectCharacters
        focus: true
        background: null
        onTextChanged: unsavedChanges = true
    }

to look like this:

    TextArea {
        id: area
        width: page.width
        selectionMode: TextEdit.SelectCharacters
        focus: true
        background: null
        onTextChanged: unsavedChanges = true
        font.pixelSize: Theme.fontSizeExtraSmall
    }

In short just add the line font.pixelSize: Theme.fontSizeExtraSmall. Then save the changes and close TinyEdit.

You can find more font size options here.

Wiki: How to edit qml and configuration files with TinyEdit

Edits to the Jolla configuration files require a text editor such as nano or vim, but they have their own problems for inexperienced users. For small edits TinyEdit by ovekaaven is sufficient. As a bonus it supports copy/paste from Jolla GUI while terminal based editors do not.

TinyEdit can be found in JollaStore.

Devel-su requires devel mode enabled.


Running TinyEdit from the command line

To edit qml or configuration files from the command line do

devel-su
export XDG_RUNTIME_DIR=/run/user/100000
harbour-tinyedit /path/to/file/filename.qml

Pay attention to privileges; you cannot save the files that require root access unless you use devel-su. The files under /home/nemo/ and its subdirectories do not usually require devel-su, but the rest do.

Be extra careful with line endings (EOL). Long lines get wrapped to next line, but they will still be correct unless you remove the invisible end-of-line-character.


How to change TinyEdit font size

By default TinyEdit font is too big to handle long lines comfortably. You can change the font size in the EditPage.qml of TinyEdit.

Run

devel-su
harbour-tinyedit /usr/share/harbour-tinyedit/qml/pages/EditPage.qml

and change this part

    TextArea {
        id: area
        width: page.width
        selectionMode: TextEdit.SelectCharacters
        focus: true
        background: null
        onTextChanged: unsavedChanges = true
    }

to look like this:

    TextArea {
        id: area
        width: page.width
        selectionMode: TextEdit.SelectCharacters
        focus: true
        background: null
        onTextChanged: unsavedChanges = true
        font.pixelSize: Theme.fontSizeExtraSmall
    }

In short just add the line font.pixelSize: Theme.fontSizeExtraSmall. Then save the changes and close TinyEdit.

You can find more font size options here.