Last active
January 2, 2020 07:53
-
-
Save ksvbka/ba0c4e23315d027c0933c6ee6c7c6780 to your computer and use it in GitHub Desktop.
Plasma-workspace Snipet for vscode
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "alias": { | |
| "prefix": "alias", | |
| "body": "property alias ${1:name}: ${2:val}", | |
| "description": "QML property alias", | |
| "scope": "source.qml" | |
| }, | |
| "anchors": { | |
| "prefix": "anchors", | |
| "body": "anchors.${1}: ${2:parent}.${3}", | |
| "description": "(simple)", | |
| "scope": "source.qml" | |
| }, | |
| "anchors (all sides)": { | |
| "prefix": "anchors", | |
| "body": "anchors.left: ${1:parent}.left\nanchors.top: ${1:parent}.top\nanchors.right: ${1:parent}.right\nanchors.bottom: ${1:parent}.bottom", | |
| "description": "(all sides)", | |
| "scope": "source.qml" | |
| }, | |
| "anchors.left": { | |
| "prefix": "anchors.left", | |
| "body": "anchors.left: ${1:parent}.${2}", | |
| "description": "left", | |
| "scope": "source.qml" | |
| }, | |
| "anchors.right": { | |
| "prefix": "anchors.right", | |
| "body": "anchors.right: ${1:parent}.${2}", | |
| "description": "right", | |
| "scope": "source.qml" | |
| }, | |
| "anchors.top": { | |
| "prefix": "anchors.top", | |
| "body": "anchors.top: ${1:parent}.${2}", | |
| "description": "top", | |
| "scope": "source.qml" | |
| }, | |
| "anchors.centerIn": { | |
| "prefix": "anchors.centerIn", | |
| "body": "anchors.centerIn: ${1:parent}", | |
| "description": "centerIn", | |
| "scope": "source.qml" | |
| }, | |
| "anchors.fill": { | |
| "prefix": "anchors.fill", | |
| "body": "anchors.fill: ${1:parent}", | |
| "description": "fill", | |
| "scope": "source.qml" | |
| }, | |
| "anchors.horizontalCenter": { | |
| "prefix": "anchors.horizontalCenter", | |
| "body": "anchors.horizontalCenter: ${1:parent}.horizontalCenter", | |
| "description": "horizontal", | |
| "scope": "source.qml" | |
| }, | |
| "anchors.margins": { | |
| "prefix": "anchors.margins", | |
| "body": "anchors.margins: ${1:0}", | |
| "description": "margins", | |
| "scope": "source.qml" | |
| }, | |
| "anchors.verticalCenter": { | |
| "prefix": "anchors.verticalCenter", | |
| "body": "anchors.verticalCenter: ${1:parent}.verticalCenter", | |
| "description": "vertical", | |
| "scope": "source.qml" | |
| }, | |
| "color": { | |
| "prefix": "color", | |
| "body": "color: \"#${1}\"", | |
| "description": "#...", | |
| "scope": "source.qml" | |
| }, | |
| "Component": { | |
| "prefix": "Component", | |
| "body": "Component {${1}}", | |
| "description": "Component{}", | |
| "scope": "source.qml" | |
| }, | |
| "Component.onCompleted:": { | |
| "prefix": "Component.onCompleted", | |
| "body": "Component.onCompleted: ", | |
| "description": "Component.onCompleted", | |
| "scope": "source.qml" | |
| }, | |
| "connections": { | |
| "prefix": "connections", | |
| "body": "Connections {\n target: ${1}\n on${2}: ${3}\n}", | |
| "description": "Connections", | |
| "scope": "source.qml" | |
| }, | |
| "console.log": { | |
| "prefix": "console", | |
| "body": "console.log(\"${1:}: \")", | |
| "description": "console.log(\" :\")", | |
| "scope": "" | |
| }, | |
| "console.log + var": { | |
| "prefix": "console", | |
| "body": "console.log(\"${1:}: \" + ${2:})", | |
| "description": "console.log(\" :\" + var)", | |
| "scope": "" | |
| }, | |
| "function": { | |
| "prefix": "function", | |
| "body": "function ${1:function_name}(${2:argument}) {\n ${0:// body...}\n}", | |
| "description": "function() {}", | |
| "scope": "source.qml" | |
| }, | |
| "layout": { | |
| "prefix": "layout", | |
| "body": "Layout.fillWidth: ${1:true}\nLayout.fillHeight: ${2:true}", | |
| "description": "(all)", | |
| "scope": "source.qml" | |
| }, | |
| "layout.fillHeight": { | |
| "prefix": "layout.fillHeight", | |
| "body": "Layout.fillHeight: ${1:true}", | |
| "description": "height", | |
| "scope": "source.qml" | |
| }, | |
| "layout.fillWidth": { | |
| "prefix": "layout.fillWidth", | |
| "body": "Layout.fillWidth: ${1:true}", | |
| "description": "width", | |
| "scope": "source.qml" | |
| }, | |
| "Layout": { | |
| "prefix": "Layout", | |
| "body": "Layout.${1|alignment,fillWidth,fillHeight,maximumHeight,maximumWidth,minimumHeight,minimumWidth,preferredHeight,preferredWidth,margins,row|}", | |
| "description": "Layout", | |
| "scope": "source.qml" | |
| }, | |
| "Layout.alignment": { | |
| "prefix": "Layout.alignment", | |
| "body": "Layout.alignment: ${1|Qt.AlignCenter,Qt.AlignLeft,Qt.AlignHCenter,Qt.AlignRight,Qt.AlignTop,Qt.AlignVCenter,Qt.AlignBottom,Qt.AlignBaseline|}", | |
| "description": "Layout.alignment", | |
| "scope": "source.qml" | |
| }, | |
| "mouse": { | |
| "prefix": "mouse", | |
| "body": "MouseArea {\n anchors.fill: parent\n cursorShape: Qt.PointingHandCursor\n hoverEnabled: false\n onEntered: {}\n onExited: {}\n onWheel: {}\n onClicked: ${1}\n}", | |
| "description": "MouseArea{}", | |
| "scope": "source.qml" | |
| }, | |
| "property": { | |
| "prefix": "property", | |
| "body": "property ${1:var} ${2:name}", | |
| "description": "QML property", | |
| "scope": "source.qml" | |
| }, | |
| "default property": { | |
| "prefix": "default property", | |
| "body": "default property ${1:var} ${2:name}", | |
| "description": "QML default property", | |
| "scope": "source.qml" | |
| }, | |
| "readonly property": { | |
| "prefix": "readonly property", | |
| "body": "readonly property ${1:var} ${2:name}: ${3}", | |
| "description": "QML readonly property", | |
| "scope": "source.qml" | |
| }, | |
| "QtObject": { | |
| "prefix": "QtObject", | |
| "body": "QtObject {\n id: ${1:m}\n}", | |
| "description": "QtObject{}", | |
| "scope": "source.qml" | |
| }, | |
| "Rectangle": { | |
| "prefix": "Rectangle", | |
| "body": "Rectangle {\n width: ${1:10}\n height: ${2:10}\n color: \"${3:transparent}\"\n}", | |
| "description": "Rectangle{}", | |
| "scope": "source.qml" | |
| }, | |
| "Image": { | |
| "prefix": "Image", | |
| "body": "Image {\n\tsource: \"$1\"\n}", | |
| "description": "Image{}", | |
| "scope": "source.qml" | |
| }, | |
| "fillMode": { | |
| "prefix": "fillMode", | |
| "body": "fillMode: Image.${1|Stretch,PreserveAspectFit,PreserveAspectCrop,Tile,TileVertically,TileHorizontally,Pad|}", | |
| "description": "fillMode Image", | |
| "scope": "source.qml" | |
| }, | |
| "Gradient": { | |
| "prefix": "Gradient", | |
| "body": "Gradient {${1}}", | |
| "description": "Gradient{}", | |
| "scope": "source.qml" | |
| }, | |
| "GradientStop": { | |
| "prefix": "GradientStop", | |
| "body": "GradientStop {${1}}", | |
| "description": "GradientStop{}", | |
| "scope": "source.qml" | |
| }, | |
| "Flickable": { | |
| "prefix": "Flickable", | |
| "body": "Flickable {${1}}", | |
| "description": "Flickable{}", | |
| "scope": "source.qml" | |
| }, | |
| "signal": { | |
| "prefix": "signal", | |
| "body": "signal ${1:name}(${2})", | |
| "description": "QML signal", | |
| "scope": "source.qml" | |
| }, | |
| "stack.onStatusChanged": { | |
| "prefix": "stack.onStatusChanged", | |
| "body": "Stack.onStatusChanged: {\n if (Stack.status == Stack.Active)\n ${1:;}\n else if (Stack.status == Stack.Inactive)\n ${2:;}\n}", | |
| "description": "onStatusChanged{}", | |
| "scope": "source.qml" | |
| }, | |
| "Item": { | |
| "prefix": "Item", | |
| "body": "Item {\n\tid: ${1:name}${2}\n}", | |
| "description": "Item", | |
| "scope": "source.qml" | |
| }, | |
| "FocusScope": { | |
| "prefix": "FocusScope", | |
| "body": "FocusScope {\n\twidth: ${1:100}\n\theight: ${2:100}\n}", | |
| "description": "FocusScope", | |
| "scope": "source.qml" | |
| }, | |
| "Timer": { | |
| "prefix": "Timer", | |
| "body": "Timer {\n\tinterval: ${1:1000}\n\tonTriggered: $2\n}", | |
| "description": "Timer", | |
| "scope": "source.qml" | |
| }, | |
| "Row": { | |
| "prefix": "Row", | |
| "body": "Row {${1}}", | |
| "description": "Row", | |
| "scope": "source.qml" | |
| }, | |
| "RowLayout": { | |
| "prefix": "RowLayout", | |
| "body": "RowLayout {${1}}", | |
| "description": "RowLayout", | |
| "scope": "source.qml" | |
| }, | |
| "Column": { | |
| "prefix": "Column", | |
| "body": "Column {${1}}", | |
| "description": "Column", | |
| "scope": "source.qml" | |
| }, | |
| "Grid": { | |
| "prefix": "Grid", | |
| "body": "Grid {${1}}", | |
| "description": "Grid", | |
| "scope": "source.qml" | |
| }, | |
| "ColumnLayout": { | |
| "prefix": "ColumnLayout", | |
| "body": "ColumnLayout {${1}}", | |
| "description": "ColumnLayout", | |
| "scope": "source.qml" | |
| }, | |
| "ListView": { | |
| "prefix": "ListView", | |
| "body": "ListView {${1}}", | |
| "description": "ListView{}", | |
| "scope": "source.qml" | |
| }, | |
| "ListModel": { | |
| "prefix": "ListModel", | |
| "body": "ListModel {${1}}", | |
| "description": "ListModel{}", | |
| "scope": "source.qml" | |
| }, | |
| "ListElement": { | |
| "prefix": "ListElement", | |
| "body": "ListElement {${1}}", | |
| "description": "ListElement{}", | |
| "scope": "source.qml" | |
| }, | |
| "GridView": { | |
| "prefix": "GridView", | |
| "body": "GridView {${1}}", | |
| "description": "GridView{}", | |
| "scope": "source.qml" | |
| }, | |
| "TableView": { | |
| "prefix": "TableView", | |
| "body": "TableView {${1}}", | |
| "description": "TableView{}", | |
| "scope": "source.qml" | |
| }, | |
| "highlight": { | |
| "prefix": "highlight", | |
| "body": "highlight: ", | |
| "description": "highlight", | |
| "scope": "source.qml" | |
| }, | |
| "background": { | |
| "prefix": "background", | |
| "body": "background: ", | |
| "description": "background", | |
| "scope": "source.qml" | |
| }, | |
| "orientation": { | |
| "prefix": "orientation", | |
| "body": "orientation: ${1|ListView.Horizontal,ListView.Vertical|}", | |
| "description": "Listview orientation", | |
| "scope": "source.qml" | |
| }, | |
| "font": { | |
| "prefix": "font", | |
| "body": "font.${1|family,bold,italic,underline,pointSize,pixelSize,weight,overline,strikeout|}", | |
| "description": "font", | |
| "scope": "source.qml" | |
| }, | |
| "font.family": { | |
| "prefix": "font.family", | |
| "body": "font.family: \"$1\"", | |
| "description": "font.family", | |
| "scope": "source.qml" | |
| }, | |
| "font.pointSize": { | |
| "prefix": "font.pointSize", | |
| "body": "font.pointSize: ${1:13}", | |
| "description": "font.pointSize", | |
| "scope": "source.qml" | |
| }, | |
| "font.bold": { | |
| "prefix": "font.bold", | |
| "body": "font.bold: ${1:true}", | |
| "description": "font.bold", | |
| "scope": "source.qml" | |
| }, | |
| "Keys": { | |
| "prefix": "Keys", | |
| "body": "Keys.${1|forwardTo,onPressed,onLeftPressed,onRightPressed,onUpPressed,onDownPressed|}", | |
| "description": "Keys", | |
| "scope": "source.qml" | |
| }, | |
| "Keys.forwardTo": { | |
| "prefix": "Keys.forwardTo", | |
| "body": "Keys.forwardTo: [${1:list_object_id}]", | |
| "description": "Keys.forwardTo", | |
| "scope": "source.qml" | |
| }, | |
| "Font": { | |
| "prefix": "Font", | |
| "body": "Font.${1|Thin,ExtraLight,Light,Normal,Medium,DemiBold,Bold,ExtraBold,Black,MixedCase,AllUppercase,AllLowercase,SmallCaps,Capitalize|}", | |
| "description": "Font", | |
| "scope": "source.qml" | |
| }, | |
| "width": { | |
| "prefix": "width", | |
| "body": "width: ", | |
| "description": "width", | |
| "scope": "source.qml" | |
| }, | |
| "height": { | |
| "prefix": "height", | |
| "body": "height: ", | |
| "description": "height", | |
| "scope": "source.qml" | |
| }, | |
| "implicitHeight": { | |
| "prefix": "implicitHeight", | |
| "body": "implicitHeight: ", | |
| "description": "implicitHeight", | |
| "scope": "source.qml" | |
| }, | |
| "implicitWidth": { | |
| "prefix": "implicitWidth", | |
| "body": "implicitWidth: ", | |
| "description": "implicitWidth", | |
| "scope": "source.qml" | |
| }, | |
| "text": { | |
| "prefix": "text", | |
| "body": "text: \"${1}\"", | |
| "description": "text", | |
| "scope": "source.qml" | |
| }, | |
| "Text": { | |
| "prefix": "Text", | |
| "body": "Text {\n\ttext: \"${1}\"\n}", | |
| "description": "Text", | |
| "scope": "source.qml" | |
| }, | |
| "wrapMode": { | |
| "prefix": "wrapMode", | |
| "body": "wrapMode: Text.${1|WordWrap,NoWrap,WrapAnywhere,Wrap|}", | |
| "description": "Text wrapMode property", | |
| "scope": "source.qml" | |
| }, | |
| "horizontalAlignment": { | |
| "prefix": "horizontalAlignment", | |
| "body": "horizontalAlignment: Text.${1|AlignLeft,AlignRight,AlignHCenter,AlignJustify|}", | |
| "description": "Text horizontalAlignment property", | |
| "scope": "source.qml" | |
| }, | |
| "verticalAlignment": { | |
| "prefix": "verticalAlignment", | |
| "body": "verticalAlignment: Text.${1|AlignTop,AlignBottom,AlignVCenter|}", | |
| "description": "Text verticalAlignment property", | |
| "scope": "source.qml" | |
| }, | |
| "spacing": { | |
| "prefix": "spacing", | |
| "body": "spacing: ", | |
| "description": "spacing", | |
| "scope": "source.qml" | |
| }, | |
| "rowSpacing": { | |
| "prefix": "rowSpacing", | |
| "body": "rowSpacing: ", | |
| "description": "rowSpacing", | |
| "scope": "source.qml" | |
| }, | |
| "columnSpacing": { | |
| "prefix": "columnSpacing", | |
| "body": "columnSpacing: ", | |
| "description": "columnSpacing", | |
| "scope": "source.qml" | |
| }, | |
| "radius": { | |
| "prefix": "radius", | |
| "body": "radius: ${1:1}", | |
| "description": "radius", | |
| "scope": "source.qml" | |
| }, | |
| "model": { | |
| "prefix": "model", | |
| "body": "model: ", | |
| "description": "model", | |
| "scope": "source.qml" | |
| }, | |
| "delegate": { | |
| "prefix": "delegate", | |
| "body": "delegate: ", | |
| "description": "delegate", | |
| "scope": "source.qml" | |
| }, | |
| "clip": { | |
| "prefix": "clip", | |
| "body": "clip: ${1:true}", | |
| "description": "clip", | |
| "scope": "source.qml" | |
| }, | |
| "rows": { | |
| "prefix": "rows", | |
| "body": "rows: ", | |
| "description": "rows", | |
| "scope": "source.qml" | |
| }, | |
| "columns": { | |
| "prefix": "columns", | |
| "body": "columns: ", | |
| "description": "columns", | |
| "scope": "source.qml" | |
| }, | |
| "duration": { | |
| "prefix": "duration", | |
| "body": "duration: ", | |
| "description": "duration", | |
| "scope": "source.qml" | |
| }, | |
| "state": { | |
| "prefix": "state", | |
| "body": "state: ", | |
| "description": "state", | |
| "scope": "source.qml" | |
| }, | |
| "visible": { | |
| "prefix": "visible", | |
| "body": "visible: ${1:false}", | |
| "description": "visible", | |
| "scope": "source.qml" | |
| }, | |
| "rotation": { | |
| "prefix": "rotation", | |
| "body": "rotation: ", | |
| "description": "rotation", | |
| "scope": "source.qml" | |
| }, | |
| "Rotation": { | |
| "prefix": "Rotation", | |
| "body": "Rotation {\n\tangle: ${1:0}\n}", | |
| "description": "Rotation", | |
| "scope": "source.qml" | |
| }, | |
| "from": { | |
| "prefix": "from", | |
| "body": "from: ", | |
| "description": "from", | |
| "scope": "source.qml" | |
| }, | |
| "to": { | |
| "prefix": "to", | |
| "body": "to: ", | |
| "description": "to", | |
| "scope": "source.qml" | |
| }, | |
| "target": { | |
| "prefix": "target", | |
| "body": "target: ", | |
| "description": "target", | |
| "scope": "source.qml" | |
| }, | |
| "PropertyChanges": { | |
| "prefix": "PropertyChanges", | |
| "body": "PropertyChanges: ", | |
| "description": "PropertyChanges", | |
| "scope": "source.qml" | |
| }, | |
| "states": { | |
| "prefix": "states", | |
| "body": "states: [\n\t State {\n\t\t name: \"${1}\"\n\t}, \n\t State {\n\t\t name: \"${2}\"\n\t}\n]", | |
| "description": "states", | |
| "scope": "source.qml" | |
| }, | |
| "Transition": { | |
| "prefix": "Transition", | |
| "body": "Transition {\n\t from: \"${1}\"; to: \"${2}\"$3\n}", | |
| "description": "Transition", | |
| "scope": "source.qml" | |
| }, | |
| "Behavior": { | |
| "prefix": "Behavior", | |
| "body": "Behavior on ${1:property} {$2}", | |
| "description": "Behavior", | |
| "scope": "source.qml" | |
| }, | |
| "easing.amplitude": { | |
| "prefix": "easing.amplitude", | |
| "body": "easing.amplitude: ${1:2.0}", | |
| "description": "easing.amplitude", | |
| "scope": "source.qml" | |
| }, | |
| "easing.overshoot": { | |
| "prefix": "easing.overshoot", | |
| "body": "easing.overshoot: ${1:1.5}", | |
| "description": "easing.overshoot", | |
| "scope": "source.qml" | |
| }, | |
| "easing.period": { | |
| "prefix": "easing.period", | |
| "body": "easing.period: ${1:1.5}", | |
| "description": "easing.period", | |
| "scope": "source.qml" | |
| }, | |
| "easing.type": { | |
| "prefix": "easing.type", | |
| "body": "easing.type: Easing.${1|Linear,InQuad,OutQuad,InOutQuad,OutInQuad,InCubic,OutCubic,InOutCubic,OutInCubic,InQuart,OutQuart,InOutQuart,OutInQuart,InQuint,OutQuint,InOutQuint,OutInQuint,InSine,OutSine,InOutSine,OutInSine,InExpo,OutExpo,InOutExpo,OutInExpo,InCirc,OutCirc,InOutCirc,OutInCirc,InElastic,OutElastic,InOutElastic,OutInElastic,InBack,OutBack,InOutBack,OutInBack,InBounce,OutBounce,InOutBounce,OutInBounce,Bezier|}", | |
| "description": "easing.type", | |
| "scope": "source.qml" | |
| }, | |
| "transitions": { | |
| "prefix": "transitions", | |
| "body": "transitions: ", | |
| "description": "transitions", | |
| "scope": "source.qml" | |
| }, | |
| "opacity": { | |
| "prefix": "opacity", | |
| "body": "opacity: ", | |
| "description": "opacity", | |
| "scope": "source.qml" | |
| }, | |
| "focus": { | |
| "prefix": "focus", | |
| "body": "focus: ${1:true}", | |
| "description": "focus", | |
| "scope": "source.qml" | |
| }, | |
| "cellWidth": { | |
| "prefix": "cellWidth", | |
| "body": "cellWidth: ", | |
| "description": "cellWidth", | |
| "scope": "source.qml" | |
| }, | |
| "cellHeight": { | |
| "prefix": "cellHeight", | |
| "body": "cellHeight: ${1:true}", | |
| "description": "cellHeight", | |
| "scope": "source.qml" | |
| }, | |
| "childrenRect": { | |
| "prefix": "childrenRect", | |
| "body": "childrenRect.${1|height,width|}", | |
| "description": "childrenRect", | |
| "scope": "source.qml" | |
| }, | |
| "QtQuick": { | |
| "prefix": "QtQuick", | |
| "body": "QtQuick ${1:2.2}", | |
| "description": "QtQuick", | |
| "scope": "source.qml" | |
| }, | |
| "QtQuick.Layouts": { | |
| "prefix": "QtQuick.Layouts", | |
| "body": "QtQuick.Layouts ${1:1.1}", | |
| "description": "QtQuick.Layouts", | |
| "scope": "source.qml" | |
| }, | |
| "QtQuick.Controls": { | |
| "prefix": "QtQuick.Controls", | |
| "body": "QtQuick.Controls ${1:1.1}", | |
| "description": "QtQuick.Controls", | |
| "scope": "source.qml" | |
| }, | |
| "style": { | |
| "prefix": "style", | |
| "body": "style: ", | |
| "description": "style property", | |
| "scope": "source.qml" | |
| }, | |
| "Styles": { | |
| "prefix": "Styles", | |
| "body": "Styles.${1|ScrollViewStyle,TabViewStyle,TableViewStyle,TreeViewStyle,ApplicationWindowStyle,BusyIndicatorStyle,ButtonStyle,CalendarStyle,CheckBoxStyle,ComboBoxStyle,MenuBarStyle,MenuStyle,ProgressBarStyle,RadioButtonStyle,ScrollViewStyle,SliderStyle,SpinBoxStyle,StatusBarStyle,StatusIndicatorStyle,SwitchStyle,TabViewStyle,TextAreaStyle,TextFieldStyle,ToggleButtonStyle,ToolBarStyle,TumblerStyle,TableViewStyle,TreeViewStyle|} {$2}", | |
| "description": "Styles QML", | |
| "scope": "source.qml" | |
| }, | |
| "QtQuick.Controls.Styles": { | |
| "prefix": "QtQuick.Controls.Styles", | |
| "body": "QtQuick.Controls.Styles ${1:1.4} as Styles", | |
| "description": "QtQuick.Controls.Styles", | |
| "scope": "source.qml" | |
| }, | |
| "org.kde.plasma.plasmoid": { | |
| "prefix": "org.kde.plasma.plasmoid", | |
| "body": "org.kde.plasma.plasmoid", | |
| "description": "import plasmoid", | |
| "scope": "source.qml" | |
| }, | |
| "org.kde.plasma.core": { | |
| "prefix": "org.kde.plasma.core", | |
| "body": "org.kde.plasma.core ${1:2.0} as PlasmaCore", | |
| "description": "import PlasmaCore", | |
| "scope": "source.qml" | |
| }, | |
| "org.kde.plasma.components": { | |
| "prefix": "org.kde.plasma.components", | |
| "body": "org.kde.plasma.components ${1:2.0} as PlasmaComponents", | |
| "description": "import PlasmaComponents", | |
| "scope": "source.qml" | |
| }, | |
| "org.kde.plasma.extras": { | |
| "prefix": "org.kde.plasma.extras", | |
| "body": "org.kde.plasma.extras ${1:2.0} as PlasmaExtras", | |
| "description": "import PlasmaExtras", | |
| "scope": "source.qml" | |
| }, | |
| "Plasmoid": { | |
| "prefix": "Plasmoid", | |
| "body": "Plasmoid.${1|switchWidth,switchHeight,fullRepresentation,icon,compactRepresentation,location,expanded,backgroundHints,preferredRepresentation,toolTipMainText,toolTipSubText|}: ", | |
| "description": "Plasmoid", | |
| "scope": "source.qml" | |
| }, | |
| "PlasmaCore": { | |
| "prefix": "PlasmaCore", | |
| "body": "PlasmaCore.${1|ColorScope,DataModel,DataSource,Dialog,FrameSvg,FrameSvgItem,IconItem,Service,ServiceJob,ServiceOperationStatus,SortFilterModel,Svg,SvgItem,Theme,ToolTipArea,Types,Units,WindowThumbnail|} {$2}", | |
| "description": "PlasmaCore", | |
| "scope": "source.qml" | |
| }, | |
| "PlasmaCore.ColorScope" : { | |
| "prefix": "PlasmaCore.ColorScope", | |
| "body": "PlasmaCore.ColorScope {$1}", | |
| "description": "PlasmaCore.ColorScope", | |
| "scope": "source.qml" | |
| }, | |
| "PlasmaCore.DataModel" : { | |
| "prefix": "PlasmaCore.DataModel", | |
| "body": "PlasmaCore.DataModel {$1}", | |
| "description": "PlasmaCore.DataModel", | |
| "scope": "source.qml" | |
| }, | |
| "PlasmaCore.DataSource" : { | |
| "prefix": "PlasmaCore.DataSource", | |
| "body": "PlasmaCore.DataSource {\n\tengine: \"$1\"\n\tconnectedSources: [\"$2\"]\n\tinterval: $3\n}", | |
| "description": "PlasmaCore.DataSource", | |
| "scope": "source.qml" | |
| }, | |
| "PlasmaCore.Dialog" : { | |
| "prefix": "PlasmaCore.Dialog", | |
| "body": "PlasmaCore.Dialog {$1}", | |
| "description": "PlasmaCore.Dialog", | |
| "scope": "source.qml" | |
| }, | |
| "PlasmaCore.FrameSvg" : { | |
| "prefix": "PlasmaCore.FrameSvg", | |
| "body": "PlasmaCore.FrameSvg {$1}", | |
| "description": "PlasmaCore.FrameSvg", | |
| "scope": "source.qml" | |
| }, | |
| "PlasmaCore.FrameSvgItem" : { | |
| "prefix": "PlasmaCore.FrameSvgItem", | |
| "body": "PlasmaCore.FrameSvgItem {$1}", | |
| "description": "PlasmaCore.FrameSvgItem", | |
| "scope": "source.qml" | |
| }, | |
| "PlasmaCore.IconItem" : { | |
| "prefix": "PlasmaCore.IconItem", | |
| "body": "PlasmaCore.IconItem {\n\tsource: \"$1\"\n}", | |
| "description": "PlasmaCore.IconItem", | |
| "scope": "source.qml" | |
| }, | |
| "PlasmaCore.Service" : { | |
| "prefix": "PlasmaCore.Service", | |
| "body": "PlasmaCore.Service {$1}", | |
| "description": "PlasmaCore.Service", | |
| "scope": "source.qml" | |
| }, | |
| "PlasmaCore.ServiceJob" : { | |
| "prefix": "PlasmaCore.ServiceJob", | |
| "body": "PlasmaCore.ServiceJob {$1}", | |
| "description": "PlasmaCore.ServiceJob", | |
| "scope": "source.qml" | |
| }, | |
| "PlasmaCore.ServiceOperationStatus" : { | |
| "prefix": "PlasmaCore.ServiceOperationStatus", | |
| "body": "PlasmaCore.ServiceOperationStatus {$1}", | |
| "description": "PlasmaCore.ServiceOperationStatus", | |
| "scope": "source.qml" | |
| }, | |
| "PlasmaCore.SortFilterModel" : { | |
| "prefix": "PlasmaCore.SortFilterModel", | |
| "body": "PlasmaCore.SortFilterModel {$1}", | |
| "description": "PlasmaCore.SortFilterModel", | |
| "scope": "source.qml" | |
| }, | |
| "PlasmaCore.Svg" : { | |
| "prefix": "PlasmaCore.Svg", | |
| "body": "PlasmaCore.Svg {\n\timagePath:: \"$1\"\n}", | |
| "description": "PlasmaCore.Svg", | |
| "scope": "source.qml" | |
| }, | |
| "PlasmaCore.SvgItem" : { | |
| "prefix": "PlasmaCore.SvgItem", | |
| "body": "PlasmaCore.SvgItem {\n\tsvg: $1\n}", | |
| "description": "PlasmaCore.SvgItem", | |
| "scope": "source.qml" | |
| }, | |
| "PlasmaCore.Theme" : { | |
| "prefix": "PlasmaCore.Theme", | |
| "body": "PlasmaCore.Theme {$1}", | |
| "description": "PlasmaCore.Theme", | |
| "scope": "source.qml" | |
| }, | |
| "PlasmaCore.ToolTipArea" : { | |
| "prefix": "PlasmaCore.ToolTipArea", | |
| "body": "PlasmaCore.ToolTipArea {$1}", | |
| "description": "PlasmaCore.ToolTipArea", | |
| "scope": "source.qml" | |
| }, | |
| "PlasmaCore.Types" : { | |
| "prefix": "PlasmaCore.Types", | |
| "body": "PlasmaCore.Types {$1}", | |
| "description": "PlasmaCore.Types", | |
| "scope": "source.qml" | |
| }, | |
| "PlasmaCore.Units" : { | |
| "prefix": "PlasmaCore.Units", | |
| "body": "PlasmaCore.Units {$1}", | |
| "description": "PlasmaCore.Units", | |
| "scope": "source.qml" | |
| }, | |
| "units" : { | |
| "prefix": "units", | |
| "body": "units.${1|gridUnit,smallSpacing,largeSpacing,longDuration,shortDuration,iconSizes.small,iconSizes.smallMedium,iconSizes.medium,iconSizes.large,iconSizes.huge,iconSizes.enormous|}", | |
| "description": "Plasma units", | |
| "scope": "source.qml" | |
| }, | |
| "PlasmaCore.WindowThumbnail" : { | |
| "prefix": "PlasmaCore.WindowThumbnail", | |
| "body": "PlasmaCore.WindowThumbnail {$1}", | |
| "description": "PlasmaCore.WindowThumbnail", | |
| "scope": "source.qml" | |
| }, | |
| "PlasmaComponents" : { | |
| "prefix": "PlasmaComponents", | |
| "body": "PlasmaComponents.${1|BusyIndicator,Button,ButtonColumn,ButtonRow,CheckBox,CommonDialog,ContextMenu,Dialog,DialogStatus,Highlight,Label,ListItem,Menu,MenuItem,Page,PageOrientation,PageStack,PageStatus,ProgressBar,QueryDialog,RadioButton,ScrollBar,SectionScroller,SelectionDialog,Sheet,Slider,Switch,TabBar,TabButton,TabGroup,TextArea,TextField,ToolBar,ToolBarLayout,ToolButton|} {${2}}", | |
| "description": "PlasmaComponents.BusyIndicator", | |
| "scope": "source.qml" | |
| }, | |
| "PlasmaComponents.BusyIndicator" : { | |
| "prefix": "PlasmaComponents.BusyIndicator", | |
| "body": "PlasmaComponents.BusyIndicator {$1}", | |
| "description": "PlasmaComponents.BusyIndicator", | |
| "scope": "source.qml" | |
| }, | |
| "PlasmaComponents.Button" : { | |
| "prefix": "PlasmaComponents.Button", | |
| "body": "PlasmaComponents.Button {\n\ttext: \"$1\"\n\tonClicked: $2\n}", | |
| "description": "PlasmaComponents.Button", | |
| "scope": "source.qml" | |
| }, | |
| "PlasmaComponents.ButtonColumn" : { | |
| "prefix": "PlasmaComponents.ButtonColumn", | |
| "body": "PlasmaComponents.ButtonColumn {$1}", | |
| "description": "PlasmaComponents.ButtonColumn", | |
| "scope": "source.qml" | |
| }, | |
| "PlasmaComponents.ButtonRow" : { | |
| "prefix": "PlasmaComponents.ButtonRow", | |
| "body": "PlasmaComponents.ButtonRow {$1}", | |
| "description": "PlasmaComponents.ButtonRow", | |
| "scope": "source.qml" | |
| }, | |
| "PlasmaComponents.CheckBox" : { | |
| "prefix": "PlasmaComponents.CheckBox", | |
| "body": "PlasmaComponents.CheckBox {$1}", | |
| "description": "PlasmaComponents.CheckBox", | |
| "scope": "source.qml" | |
| }, | |
| "PlasmaComponents.CommonDialog" : { | |
| "prefix": "PlasmaComponents.CommonDialog", | |
| "body": "PlasmaComponents.CommonDialog {$1}", | |
| "description": "PlasmaComponents.CommonDialog", | |
| "scope": "source.qml" | |
| }, | |
| "PlasmaComponents.ContextMenu" : { | |
| "prefix": "PlasmaComponents.ContextMenu", | |
| "body": "PlasmaComponents.ContextMenu {$1}", | |
| "description": "PlasmaComponents.ContextMenu", | |
| "scope": "source.qml" | |
| }, | |
| "PlasmaComponents.Dialog" : { | |
| "prefix": "PlasmaComponents.Dialog", | |
| "body": "PlasmaComponents.Dialog {$1}", | |
| "description": "PlasmaComponents.Dialog", | |
| "scope": "source.qml" | |
| }, | |
| "PlasmaComponents.Highlight" : { | |
| "prefix": "PlasmaComponents.Highlight", | |
| "body": "PlasmaComponents.Highlight {$1}", | |
| "description": "PlasmaComponents.Highlight", | |
| "scope": "source.qml" | |
| }, | |
| "PlasmaComponents.Label" : { | |
| "prefix": "PlasmaComponents.Label", | |
| "body": "PlasmaComponents.Label {\n\ttext: \"$1\"\n}", | |
| "description": "PlasmaComponents.Label", | |
| "scope": "source.qml" | |
| }, | |
| "PlasmaComponents.ListItem" : { | |
| "prefix": "PlasmaComponents.ListItem", | |
| "body": "PlasmaComponents.ListItem {$1}", | |
| "description": "PlasmaComponents.ListItem", | |
| "scope": "source.qml" | |
| }, | |
| "PlasmaComponents.Menu" : { | |
| "prefix": "PlasmaComponents.Menu", | |
| "body": "PlasmaComponents.Menu {$1}", | |
| "description": "PlasmaComponents.Menu", | |
| "scope": "source.qml" | |
| }, | |
| "PlasmaComponents.MenuItem" : { | |
| "prefix": "PlasmaComponents.MenuItem", | |
| "body": "PlasmaComponents.MenuItem {\n\ttext: \"$1\"\n\ticon: \"$2\"\n\tonClicked: $3\n}", | |
| "description": "PlasmaComponents.MenuItem", | |
| "scope": "source.qml" | |
| }, | |
| "PlasmaComponents.Page" : { | |
| "prefix": "PlasmaComponents.Page", | |
| "body": "PlasmaComponents.Page {$1}", | |
| "description": "PlasmaComponents.Page", | |
| "scope": "source.qml" | |
| }, | |
| "PlasmaComponents.PageOrientation" : { | |
| "prefix": "PlasmaComponents.PageOrientation", | |
| "body": "PlasmaComponents.PageOrientation {$1}", | |
| "description": "PlasmaComponents.PageOrientation", | |
| "scope": "source.qml" | |
| }, | |
| "PlasmaComponents.PageStack" : { | |
| "prefix": "PlasmaComponents.PageStack", | |
| "body": "PlasmaComponents.PageStack {$1}", | |
| "description": "PlasmaComponents.PageStack", | |
| "scope": "source.qml" | |
| }, | |
| "PlasmaComponents.PageStatus" : { | |
| "prefix": "PlasmaComponents.PageStatus", | |
| "body": "PlasmaComponents.PageStatus {$1}", | |
| "description": "PlasmaComponents.PageStatus", | |
| "scope": "source.qml" | |
| }, | |
| "PlasmaComponents.ProgressBar" : { | |
| "prefix": "PlasmaComponents.ProgressBar", | |
| "body": "PlasmaComponents.ProgressBar {$1}", | |
| "description": "PlasmaComponents.ProgressBar", | |
| "scope": "source.qml" | |
| }, | |
| "PlasmaComponents.QueryDialog" : { | |
| "prefix": "PlasmaComponents.QueryDialog", | |
| "body": "PlasmaComponents.QueryDialog {$1}", | |
| "description": "PlasmaComponents.QueryDialog", | |
| "scope": "source.qml" | |
| }, | |
| "PlasmaComponents.RadioButton" : { | |
| "prefix": "PlasmaComponents.RadioButton", | |
| "body": "PlasmaComponents.RadioButton {$1}", | |
| "description": "PlasmaComponents.RadioButton", | |
| "scope": "source.qml" | |
| }, | |
| "PlasmaComponents.ScrollBar" : { | |
| "prefix": "PlasmaComponents.ScrollBar", | |
| "body": "PlasmaComponents.ScrollBar {$1}", | |
| "description": "PlasmaComponents.ScrollBar", | |
| "scope": "source.qml" | |
| }, | |
| "PlasmaComponents.SectionScroller" : { | |
| "prefix": "PlasmaComponents.SectionScroller", | |
| "body": "PlasmaComponents.SectionScroller {$1}", | |
| "description": "PlasmaComponents.SectionScroller", | |
| "scope": "source.qml" | |
| }, | |
| "PlasmaComponents.SelectionDialog" : { | |
| "prefix": "PlasmaComponents.SelectionDialog", | |
| "body": "PlasmaComponents.SelectionDialog {$1}", | |
| "description": "PlasmaComponents.SelectionDialog", | |
| "scope": "source.qml" | |
| }, | |
| "PlasmaComponents.Sheet" : { | |
| "prefix": "PlasmaComponents.Sheet", | |
| "body": "PlasmaComponents.Sheet {$1}", | |
| "description": "PlasmaComponents.Sheet", | |
| "scope": "source.qml" | |
| }, | |
| "PlasmaComponents.Slider" : { | |
| "prefix": "PlasmaComponents.Slider", | |
| "body": "PlasmaComponents.Slider {$1}", | |
| "description": "PlasmaComponents.Slider", | |
| "scope": "source.qml" | |
| }, | |
| "PlasmaComponents.Switch" : { | |
| "prefix": "PlasmaComponents.Switch", | |
| "body": "PlasmaComponents.Switch {$1}", | |
| "description": "PlasmaComponents.Switch", | |
| "scope": "source.qml" | |
| }, | |
| "PlasmaComponents.TabBar" : { | |
| "prefix": "PlasmaComponents.TabBar", | |
| "body": "PlasmaComponents.TabBar {$1}", | |
| "description": "PlasmaComponents.TabBar", | |
| "scope": "source.qml" | |
| }, | |
| "PlasmaComponents.TabButton" : { | |
| "prefix": "PlasmaComponents.TabButton", | |
| "body": "PlasmaComponents.TabButton {$1}", | |
| "description": "PlasmaComponents.TabButton", | |
| "scope": "source.qml" | |
| }, | |
| "PlasmaComponents.TabGroup" : { | |
| "prefix": "PlasmaComponents.TabGroup", | |
| "body": "PlasmaComponents.TabGroup {$1}", | |
| "description": "PlasmaComponents.TabGroup", | |
| "scope": "source.qml" | |
| }, | |
| "PlasmaComponents.TextArea" : { | |
| "prefix": "PlasmaComponents.TextArea", | |
| "body": "PlasmaComponents.TextArea {$1}", | |
| "description": "PlasmaComponents.TextArea", | |
| "scope": "source.qml" | |
| }, | |
| "PlasmaComponents.TextField" : { | |
| "prefix": "PlasmaComponents.TextField", | |
| "body": "PlasmaComponents.TextField {$1}", | |
| "description": "PlasmaComponents.TextField", | |
| "scope": "source.qml" | |
| }, | |
| "PlasmaComponents.ToolBar" : { | |
| "prefix": "PlasmaComponents.ToolBar", | |
| "body": "PlasmaComponents.ToolBar {$1}", | |
| "description": "PlasmaComponents.ToolBar", | |
| "scope": "source.qml" | |
| }, | |
| "PlasmaComponents.ToolBarLayout" : { | |
| "prefix": "PlasmaComponents.ToolBarLayout", | |
| "body": "PlasmaComponents.ToolBarLayout {$1}", | |
| "description": "PlasmaComponents.ToolBarLayout", | |
| "scope": "source.qml" | |
| }, | |
| "PlasmaComponents.ToolButton" : { | |
| "prefix": "PlasmaComponents.ToolButton", | |
| "body": "PlasmaComponents.ToolButton {\n\ttext: \"$1\"\n\ticonSource: \"$2\"\n\tonClicked: $3}", | |
| "description": "PlasmaComponents.ToolButton", | |
| "scope": "source.qml" | |
| },"PlasmaExtras" : { | |
| "prefix": "PlasmaExtras", | |
| "body": "PlasmaComponents.${1|ActivateAnimation,App,AppearAnimation,FallbackComponent,Heading,PageRow,Paragraph,PressedAnimation,ReleasedAnimation,ResourceInstance,ScrollArea,Title|} {${2}}", | |
| "description": "PlasmaExtras.template", | |
| "scope": "source.qml" | |
| }, | |
| "PlasmaExtras.ActivateAnimation" : { | |
| "prefix": "PlasmaExtras.ActivateAnimation", | |
| "body": "PlasmaComponents.ActivateAnimation {$1}", | |
| "description": "PlasmaExtras.ActivateAnimation", | |
| "scope": "source.qml" | |
| }, | |
| "PlasmaExtras.App" : { | |
| "prefix": "PlasmaExtras.App", | |
| "body": "PlasmaComponents.App {$1}", | |
| "description": "PlasmaExtras.App", | |
| "scope": "source.qml" | |
| }, | |
| "PlasmaExtras.AppearAnimation" : { | |
| "prefix": "PlasmaExtras.AppearAnimation", | |
| "body": "PlasmaComponents.AppearAnimation {$1}", | |
| "description": "PlasmaExtras.AppearAnimation", | |
| "scope": "source.qml" | |
| }, | |
| "PlasmaExtras.FallbackComponent" : { | |
| "prefix": "PlasmaExtras.FallbackComponent", | |
| "body": "PlasmaComponents.FallbackComponent {$1}", | |
| "description": "PlasmaExtras.FallbackComponent", | |
| "scope": "source.qml" | |
| }, | |
| "PlasmaExtras.Heading" : { | |
| "prefix": "PlasmaExtras.Heading", | |
| "body": "PlasmaComponents.Heading {$1}", | |
| "description": "PlasmaExtras.Heading", | |
| "scope": "source.qml" | |
| }, | |
| "PlasmaExtras.PageRow" : { | |
| "prefix": "PlasmaExtras.PageRow", | |
| "body": "PlasmaComponents.PageRow {$1}", | |
| "description": "PlasmaExtras.PageRow", | |
| "scope": "source.qml" | |
| }, | |
| "PlasmaExtras.Paragraph" : { | |
| "prefix": "PlasmaExtras.Paragraph", | |
| "body": "PlasmaComponents.Paragraph {$1}", | |
| "description": "PlasmaExtras.Paragraph", | |
| "scope": "source.qml" | |
| }, | |
| "PlasmaExtras.PressedAnimation" : { | |
| "prefix": "PlasmaExtras.PressedAnimation", | |
| "body": "PlasmaComponents.PressedAnimation {$1}", | |
| "description": "PlasmaExtras.PressedAnimation", | |
| "scope": "source.qml" | |
| }, | |
| "PlasmaExtras.ReleasedAnimation" : { | |
| "prefix": "PlasmaExtras.ReleasedAnimation", | |
| "body": "PlasmaComponents.ReleasedAnimation {$1}", | |
| "description": "PlasmaExtras.ReleasedAnimation", | |
| "scope": "source.qml" | |
| }, | |
| "PlasmaExtras.ResourceInstance" : { | |
| "prefix": "PlasmaExtras.ResourceInstance", | |
| "body": "PlasmaComponents.ResourceInstance {$1}", | |
| "description": "PlasmaExtras.ResourceInstance", | |
| "scope": "source.qml" | |
| }, | |
| "PlasmaExtras.ScrollArea" : { | |
| "prefix": "PlasmaExtras.ScrollArea", | |
| "body": "PlasmaComponents.ScrollArea {$1}", | |
| "description": "PlasmaExtras.ScrollArea", | |
| "scope": "source.qml" | |
| }, | |
| "PlasmaExtras.Title" : { | |
| "prefix": "PlasmaExtras.Title", | |
| "body": "PlasmaComponents.Title {$1}", | |
| "description": "PlasmaExtras.Title", | |
| "scope": "source.qml" | |
| }, | |
| "PlasmaExtras.ConditionalLoader" : { | |
| "prefix": "PlasmaExtras.ConditionalLoader", | |
| "body": "PlasmaComponents.ConditionalLoader {\n\tid: $1\n\twhen: $2\n\tsource: $3\n}", | |
| "description": "PlasmaExtras.ConditionalLoader", | |
| "scope": "source.qml" | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment