POQV6EZEPJLYHUC2HN3BYTRPR7V5V2ILWXU56SNMTA6ETE74QNTAC
DLDMHQY6F53N2YXNDBQY77GAU2I4N2OWC3DL6L36T2SSAVW6YSXAC
GGYFPXND4VBCROZZXTKAP7Y4JOP2OOYQAFVLMUE7SLFM225EUSIAC
B43WNBLFFR2UQIH3C6KIZAQTAEQOQM3J3IYLGQMVGJHYOME73OKQC
Q7FXTHVUPVAFMNY277C3NFJO3VXLZU5G6C6UYSD5QPURHSG3A7OQC
RE4EKNSLYGCITZZEOPIRJAWTKIONGP7IY6S77BQO7JQL2CK27RZAC
FNNW5IEAXQ43WKB6QSQB7DFLG3Y3T5FYPXIUX7KQ2URR2GU3QLTAC
ZCRW57C5MSBXYGUMGQTZNHGHO4HGHFBICW53X5I2IMGP3H2CKWRQC
Q35OTML226J2HZLHOCPV5OY6ZUM2XU4RZBE5E3GDWVHVFASHFEJAC
FRFFQV7VNYKGCA7ZAOSRPC2HHYTAIZ6AGGR7A5QEV6QPAQGFDYGAC
2N67RQZCVGL6GYJJLM2US4YVCEIUK25AHCLD66C7HR4PPTNUOCWAC
settings.pijul.path.detect.text=Detect
settings.pijul.path.description.text=Dracon does not embed the pijul binary, you should install it
settings.pijul.path.tooltip.text=Dracon does not embed the pijul binary, you should install it using cargo or by \
downloading a build for your platform. See <a href="https://oblitersoftware.github.io/">Dracon installation</a>
settings.pijul.text=Pijul settings
settings.editor.text=Editor server settings
settings.editor.path.text=Editor server path:
settings.editor.path.tooltip.text=Dracon does not embed the editor-server binary, you should install it using cargo or by \
downloading a build for your platform. See <a href="https://oblitersoftware.github.io/">Dracon installation</a>
settings.install.text=Click here to read more about Dracon installation.
settings.pijul.path.detect.text=Detect Pijul
settings.editor.path.detect.text=Detect Editor Server
fun findPijul(): String =
service<PijulSettings>().getPathToPijul() ?: findBinary("pijul")
fun findPijulOrNull(): String? =
service<PijulSettings>().getPathToPijul() ?: findBinaryOrNull("pijul")
fun findEditorServer(): String =
service<PijulSettings>().getPathToEditorServer() ?: findBinary("editor-server")
val editorServerPath = TextFieldWithBrowseButton().also {
it.addBrowseFolderListener(
DraconBundle.message("settings.editor.path.select.text"),
"",
null,
FileChooserDescriptor(true, false, false, false, false, false)
.withFileFilter { file: VirtualFile? ->
file?.name == "editor-server"
}
)
it.toolTipText = DraconBundle.message("settings.editor.path.tooltip.text")
}
}, 0
)
.addLabeledComponent(JBLabel(DraconBundle.message("settings.editor.text")), JSeparator())
.addLabeledComponent(
JBLabel(DraconBundle.message("settings.editor.path.text")).also {
it.toolTipText = DraconBundle.message("settings.editor.path.tooltip.text")
}, editorServerPath, 1, false
)
.addComponent(JPanel(BorderLayout()).also {
it.add(detectEditorServer, BorderLayout.EAST)