Rework and nushell support

This commit is contained in:
crschnick
2025-06-15 07:41:58 +00:00
parent e4a619cee0
commit 260331f6ef
6 changed files with 88 additions and 2 deletions

View File

@@ -475,6 +475,7 @@ public abstract class StoreEntryComp extends SimpleComp {
event.consume();
});
order.getItems().add(index);
order.getItems().add(new SeparatorMenuItem());
var noOrder = new MenuItem(AppI18n.get("none"), new FontIcon("mdi2r-reorder-horizontal"));
@@ -486,7 +487,25 @@ public abstract class StoreEntryComp extends SimpleComp {
order.getItems().add(noOrder);
}
var top = new MenuItem(AppI18n.get("stickToTop"), new FontIcon("mdi2o-order-bool-descending"));
var first = new MenuItem(AppI18n.get("moveToTop"), new FontIcon("mdi2o-order-bool-descending"));
first.setOnAction(event -> {
DataStorage.get().setOrderIndex(getWrapper().getEntry(), Integer.MIN_VALUE);
event.consume();
});
first.setDisable(getWrapper().getEntry().getOrderIndex() == Integer.MIN_VALUE);
order.getItems().add(first);
var last = new MenuItem(AppI18n.get("moveToBottom"), new FontIcon("mdi2o-order-bool-ascending"));
last.setOnAction(event -> {
DataStorage.get().setOrderIndex(getWrapper().getEntry(), Integer.MAX_VALUE);
event.consume();
});
last.setDisable(getWrapper().getEntry().getOrderIndex() == Integer.MAX_VALUE);
order.getItems().add(last);
order.getItems().add(new SeparatorMenuItem());
var top = new MenuItem(AppI18n.get("stickToTop"), new FontIcon("mdi2o-order-bool-descending-variant"));
top.setOnAction(event -> {
DataStorage.get().setOrderIndex(getWrapper().getEntry(), Integer.MIN_VALUE);
event.consume();
@@ -494,13 +513,16 @@ public abstract class StoreEntryComp extends SimpleComp {
top.setDisable(getWrapper().getEntry().getOrderIndex() == Integer.MIN_VALUE);
order.getItems().add(top);
var bottom = new MenuItem(AppI18n.get("stickToBottom"), new FontIcon("mdi2o-order-bool-ascending"));
var bottom = new MenuItem(AppI18n.get("stickToBottom"), new FontIcon("mdi2o-order-bool-ascending-variant"));
bottom.setOnAction(event -> {
DataStorage.get().setOrderIndex(getWrapper().getEntry(), Integer.MAX_VALUE);
event.consume();
});
bottom.setDisable(getWrapper().getEntry().getOrderIndex() == Integer.MAX_VALUE);
order.getItems().add(bottom);
order.getItems().add(new SeparatorMenuItem());
items.add(order);
}
}

View File

@@ -16,6 +16,11 @@
.combo-box-popup .list-cell:hover, .combo-box-popup .list-cell:focused {
-fx-background-color: -color-context-menu;
-fx-text-fill: -color-fg-default;
}
.combo-box-popup .list-cell:hover .graphic, .combo-box-popup .list-cell .graphic {
-fx-icon-color: -color-fg-default;
}
.choice-comp-content > .top {

View File

@@ -22,6 +22,7 @@ public class ShellDialects {
public static ShellDialect ZSH;
public static ShellDialect CSH;
public static ShellDialect FISH;
public static ShellDialect NUSHELL;
public static ShellDialect NO_INTERACTION;
public static ShellDialect CISCO;
@@ -89,6 +90,7 @@ public class ShellDialects {
CSH = byId("csh");
ASH = byId("ash");
SH = byId("sh");
NUSHELL = byId("nushell");
NO_INTERACTION = byId("noInteraction");
CISCO = byId("cisco");
MIKROTIK = byId("mikrotik");

View File

@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Generator: visioncortex VTracer -->
<svg
id="svg"
version="1.1"
viewBox="0 0 400 400"
style="display: block;"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs3" />
<path
d="M0 0 C6.93 0 13.86 0 21 0 C21 38.61 21 77.22 21 117 C14.22645857 117 8.53138599 116.98586958 2 116 C2 112.04 2 108.08 2 104 C-0.10375 105.546875 -0.10375 105.546875 -2.25 107.125 C-14.08028546 115.39780955 -25.41138365 120.30986454 -40 119 C-49.64829412 117.07689721 -56.55713116 113.55978645 -63.375 106.5625 C-67.57662665 99.93685797 -67.37124042 92.76701998 -67.85671997 85.13790894 C-68.00601713 82.91021723 -68.17880156 80.68508098 -68.35327148 78.45922852 C-70.5354284 49.24476592 -70.5354284 49.24476592 -66.37548828 42.28027344 C-61.37591691 37.48343546 -54.90107126 35 -48 35 C-47.99120064 36.00691895 -47.99120064 36.00691895 -47.98222351 37.03417969 C-47.91811799 44.04275353 -47.83365385 51.05087548 -47.73754883 58.05908203 C-47.70436561 60.67197702 -47.67631329 63.28494255 -47.65356445 65.89794922 C-47.61989792 69.66143761 -47.56757351 73.42428339 -47.51171875 77.1875 C-47.50532883 78.34926758 -47.4989389 79.51103516 -47.49235535 80.70800781 C-47.37651596 87.14857181 -46.86191996 92.1856278 -44 98 C-39.07211074 102.19394831 -34.56906849 102.68837734 -28.1796875 102.44140625 C-18.0472244 101.03481125 -8.20012624 95.20012624 -1 88 C-0.87483363 85.26194796 -0.81392327 82.54788281 -0.79467773 79.80834961 C-0.78477814 78.94988937 -0.77487854 78.09142914 -0.76467896 77.20695496 C-0.73296691 74.35544641 -0.70826836 71.50392118 -0.68359375 68.65234375 C-0.66303259 66.68078669 -0.64203635 64.70923412 -0.62062073 62.73768616 C-0.56531347 57.53778715 -0.5159425 52.3378478 -0.46777344 47.13787842 C-0.41762143 41.83602286 -0.36190256 36.5342262 -0.30664062 31.23242188 C-0.19895325 20.82166293 -0.09804608 10.41085421 0 0 Z "
transform="translate(193,170)"
style="fill: #4F980A;"
id="path1" />
<path
d="M0 0 C6.17090994 5.20954713 8.74246099 10.18357236 9.68994141 18.19775391 C10.07290072 23.37522498 10.16346855 28.564741 10.296875 33.75341797 C10.45326878 37.43355901 10.77431278 41.08446193 11.09375 44.75390625 C12.51153769 64.11321466 12.51153769 64.11321466 8.81298828 69.37255859 C3.78222552 73.8354667 -2.76794162 77.0625 -9.5625 77.0625 C-9.56796844 76.03678894 -9.56796844 76.03678894 -9.57354736 74.99035645 C-9.61546478 67.85195329 -9.68487596 60.71418754 -9.77001953 53.57617188 C-9.80037523 50.91458389 -9.81942114 48.2535998 -9.83349609 45.59179688 C-9.85498215 41.75868357 -9.90166563 37.92656398 -9.953125 34.09375 C-9.95435364 32.91010864 -9.95558228 31.72646729 -9.95684814 30.50695801 C-10.07870172 23.58233921 -10.80347291 18.93760458 -14.5625 13.0625 C-19.75665219 8.90717825 -26.22877464 9.37883486 -32.5625 10.0625 C-41.85301864 12.09720036 -49.87659296 17.37659296 -56.5625 24.0625 C-56.78018018 26.86199837 -56.87392652 29.56549727 -56.88134766 32.36767578 C-56.89139328 33.22628204 -56.9014389 34.08488831 -56.91178894 34.96951294 C-56.94275026 37.8156058 -56.95969189 40.66160406 -56.9765625 43.5078125 C-56.99526375 45.47794415 -57.01483636 47.4480677 -57.0352478 49.41818237 C-57.08668529 54.60983518 -57.1262487 59.80151399 -57.16339111 64.99328613 C-57.20335811 70.28855889 -57.25448368 75.5837224 -57.3046875 80.87890625 C-57.40158433 91.27336858 -57.48491405 101.66787557 -57.5625 112.0625 C-64.4925 112.0625 -71.4225 112.0625 -78.5625 112.0625 C-78.5625 73.4525 -78.5625 34.8425 -78.5625 -4.9375 C-68.4375 -4.9375 -68.4375 -4.9375 -64 -4.4375 C-61.8034375 -4.19 -61.8034375 -4.19 -59.5625 -3.9375 C-59.2325 -0.3075 -58.9025 3.3225 -58.5625 7.0625 C-57.88445312 6.61519531 -57.20640625 6.16789062 -56.5078125 5.70703125 C-39.00211665 -5.66439722 -19.20415486 -13.78851193 0 0 Z "
transform="translate(134.5625,117.9375)"
style="fill: #26B346;"
id="path2" />
<path
d="M0 0 C3.34699538 1.27754112 6.45190204 2.71552371 9.5703125 4.4765625 C10.89349487 5.22268799 10.89349487 5.22268799 12.2434082 5.98388672 C13.1943335 6.5254541 14.14525879 7.06702148 15.125 7.625 C16.13199951 8.19621582 17.13899902 8.76743164 18.17651367 9.35595703 C27.07885409 14.42878382 35.8930231 19.64600095 44.69506836 24.89038086 C53.88854921 30.36245557 63.13968459 35.72600245 72.42504883 41.04052734 C74.40440628 42.17579125 76.37761289 43.32187523 78.34326172 44.48071289 C80.93162593 46.00735157 80.93162593 46.00735157 83.45751953 47.15795898 C86.67435707 48.77571441 88.55948647 49.84425335 89.87182617 53.28735352 C91.03664976 59.85748883 91.67777526 68.95501885 87.84570312 74.74365234 C84.38870949 77.97907357 80.05500078 79.76703225 75.77783203 81.68554688 C70.84375759 84.02032072 66.1830968 86.84463164 61.4699707 89.59158325 C59.06990521 90.98306075 56.65643471 92.35034265 54.24282837 93.71815491 C46.93425244 97.86215345 39.69175768 102.11067741 32.47402954 106.41061401 C27.65400632 109.2815708 22.8272111 112.14115069 18 115 C16.67452148 115.78552246 16.67452148 115.78552246 15.32226562 116.58691406 C13.05475038 117.92386695 10.77965686 119.2463902 8.5 120.5625 C7.54818848 121.12698853 7.54818848 121.12698853 6.57714844 121.70288086 C4.84375 122.69140625 4.84375 122.69140625 2 124 C-2.20059624 122.59980125 -3.19051525 119.63174123 -5.1875 115.9375 C-5.55552734 115.27427734 -5.92355469 114.61105469 -6.30273438 113.92773438 C-7.21012062 112.28972543 -8.10615573 110.64543779 -9 109 C-5.15078128 104.74717388 -1.23840292 102.22131326 3.8125 99.5625 C5.43879937 98.68208347 7.06373055 97.79913633 8.6875 96.9140625 C9.98300781 96.20878418 9.98300781 96.20878418 11.3046875 95.48925781 C19.14796406 91.15556334 26.8382037 86.54533596 34.56542969 82.00927734 C37.67516142 80.19003565 40.79006514 78.38021857 43.90785217 76.57484436 C46.59478583 75.01828741 49.2792667 73.45752949 51.96347046 71.89627075 C53.27543727 71.13444366 54.58844192 70.37440098 55.90249634 69.61618042 C57.73863704 68.55624679 59.5708615 67.48983218 61.40234375 66.421875 C62.45929443 65.80924805 63.51624512 65.19662109 64.60522461 64.56542969 C67.09869419 63.2225852 67.09869419 63.2225852 68 61 C67.28279785 60.73010254 66.5655957 60.46020508 65.82666016 60.18212891 C62.99143436 58.99641779 60.43187242 57.62543615 57.7734375 56.0859375 C56.24601929 55.20373535 56.24601929 55.20373535 54.68774414 54.30371094 C53.59453857 53.66723633 52.50133301 53.03076172 51.375 52.375 C50.22070176 51.70591662 49.06632197 51.03697392 47.91186523 50.36816406 C38.46416027 44.88618345 29.06684964 39.31977925 19.67797852 33.73779297 C10.16199104 28.08266556 0.59653461 22.51713074 -9 17 C-7.51481201 12.95698825 -5.57122002 9.38853744 -3.375 5.6875 C-2.74335938 4.61886719 -2.11171875 3.55023438 -1.4609375 2.44921875 C-0.97882813 1.64097656 -0.49671875 0.83273438 0 0 Z "
transform="translate(255,140)"
style="fill: #E4E4E4;"
id="path3" />
</svg>

After

Width:  |  Height:  |  Size: 6.8 KiB

27
img/proc/nushell_icon.svg Normal file
View File

@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Generator: visioncortex VTracer -->
<svg
id="svg"
version="1.1"
viewBox="0 0 289.77002 178.5248"
style="display:block"
width="289.77002"
height="178.5248"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs3" />
<path
d="m 137,59.314513 c 6.93,0 13.86,0 21,0 0,38.61 0,77.219997 0,116.999997 -6.77354,0 -12.46861,-0.0141 -19,-1 0,-3.96 0,-7.92 0,-12 -2.10375,1.54688 -2.10375,1.54688 -4.25,3.125 -11.83029,8.27281 -23.16138,13.18486 -37.75,11.875 -9.648294,-1.9231 -16.557131,-5.44021 -23.375,-12.4375 -4.201627,-6.62564 -3.99624,-13.79548 -4.48172,-21.42459 -0.149297,-2.22769 -0.322082,-4.45283 -0.496551,-6.67868 -2.182157,-29.21446 -2.182157,-29.21446 1.977783,-36.17895 C 75.624083,96.797948 82.098929,94.314513 89,94.314513 c 0.0088,1.006919 0.0088,1.006919 0.01778,2.03418 0.06411,7.008577 0.14857,14.016697 0.244675,21.024897 0.03318,2.6129 0.06124,5.22587 0.08398,7.83887 0.03367,3.76349 0.08599,7.52634 0.141845,11.28955 0.0064,1.16177 0.01278,2.32354 0.01936,3.52051 0.115844,6.44056 0.63044,11.47762 3.49236,17.29199 4.927889,4.19395 9.43093,4.68838 15.82031,4.44141 10.13247,-1.4066 19.97956,-7.24128 27.17969,-14.44141 0.12517,-2.73805 0.18608,-5.45211 0.20532,-8.19165 0.01,-0.85846 0.0198,-1.71692 0.03,-2.60139 0.0317,-2.85151 0.0564,-5.70304 0.0811,-8.55461 0.0206,-1.97156 0.0416,-3.94311 0.063,-5.91466 0.0553,-5.1999 0.10468,-10.39984 0.15285,-15.59981 0.0502,-5.30185 0.10587,-10.603651 0.16113,-15.905455 C 136.80105,80.136176 136.90195,69.725367 137,59.314513 Z"
style="fill:#4f980a"
id="path1" />
<path
d="m 78.5625,7.2520127 c 6.17091,5.2095473 8.742461,10.1835723 9.689941,18.1977543 0.38296,5.177471 0.473528,10.366987 0.606934,15.555664 0.156394,3.680141 0.477438,7.331044 0.796875,11.000488 1.417788,19.359309 1.417788,19.359309 -2.280762,24.618653 C 82.344725,81.08748 75.794558,84.314513 69,84.314513 c -0.0055,-1.025711 -0.0055,-1.025711 -0.01105,-2.072144 -0.04192,-7.138403 -0.111329,-14.276168 -0.196472,-21.414184 -0.03036,-2.661588 -0.0494,-5.322572 -0.06348,-7.984375 -0.02149,-3.833113 -0.06817,-7.665233 -0.119629,-11.498047 -0.0012,-1.183641 -0.0025,-2.367283 -0.0037,-3.586792 C 68.483798,30.834352 67.759027,26.189618 64,20.314513 c -5.194152,-4.155322 -11.666275,-3.683665 -18,-3 -9.290519,2.0347 -17.314093,7.314093 -24,14 -0.21768,2.799498 -0.311427,5.502997 -0.318848,8.305176 -0.01004,0.858606 -0.02009,1.717212 -0.03044,2.601837 -0.03096,2.846093 -0.0479,5.692091 -0.06477,8.538299 -0.0187,1.970132 -0.03827,3.940256 -0.05869,5.91037 -0.05144,5.191653 -0.091,10.383332 -0.128143,15.575104 -0.03997,5.295273 -0.09109,10.590436 -0.141296,15.88562 C 21.160913,98.525382 21.077586,108.91989 21,119.31451 c -6.93,0 -13.86,0 -21,0 C 0,80.704513 0,42.094513 0,2.3145127 c 10.125,0 10.125,0 14.5625,0.5 2.196563,0.2475 2.196563,0.2475 4.4375,0.5 0.33,3.63 0.66,7.2600003 1,11.0000003 0.678047,-0.447305 1.356094,-0.89461 2.054688,-1.355469 C 39.560383,1.5876155 59.358345,-6.5364993 78.5625,7.2520127 Z"
style="fill:#26b346"
id="path2" />
<path
d="m 199,29.314513 c 3.347,1.277541 6.4519,2.715523 9.57031,4.476562 1.32318,0.746126 1.32318,0.746126 2.6731,1.507324 0.95092,0.541568 1.90185,1.083135 2.88159,1.641114 1.007,0.571215 2.014,1.142431 3.05151,1.730957 8.90234,5.072827 17.71651,10.290044 26.51856,15.534424 9.19348,5.472075 18.44461,10.835621 27.72998,16.150146 1.97936,1.135264 3.95256,2.281348 5.91821,3.440186 2.58837,1.526639 2.58837,1.526639 5.11426,2.677246 3.21684,1.617755 5.10197,2.686294 6.41431,6.129395 1.16482,6.570135 1.80594,15.667665 -2.02613,21.456293 -3.45699,3.23543 -7.7907,5.02338 -12.06787,6.9419 -4.93407,2.33477 -9.59473,5.15908 -14.30786,7.90604 -2.40007,1.39147 -4.81354,2.75876 -7.22714,4.12657 -7.30858,4.144 -14.55107,8.39252 -21.7688,12.69245 -4.82002,2.87096 -9.64682,5.73054 -14.47403,8.58939 -1.32548,0.78552 -1.32548,0.78552 -2.67773,1.58691 -2.26752,1.33696 -4.54261,2.65948 -6.82227,3.97559 -0.95181,0.56449 -0.95181,0.56449 -1.92285,1.14038 -1.7334,0.98853 -1.7334,0.98853 -4.57715,2.29712 -4.2006,-1.4002 -5.19052,-4.36826 -7.1875,-8.0625 -0.36803,-0.66322 -0.73605,-1.32645 -1.11523,-2.00977 -0.90739,-1.638 -1.80343,-3.28229 -2.69727,-4.92773 3.84922,-4.25283 7.7616,-6.77869 12.8125,-9.4375 1.6263,-0.88041 3.25123,-1.76336 4.875,-2.64844 1.29551,-0.70527 1.29551,-0.70527 2.61719,-1.4248 7.84327,-4.33369 15.53351,-8.94392 23.26074,-13.47998 3.10973,-1.81924 6.22463,-3.62906 9.34242,-5.43443 2.68694,-1.55656 5.37142,-3.11732 8.05562,-4.67858 1.31197,-0.76182 2.62497,-1.521866 3.93903,-2.280087 1.83614,-1.059933 3.66836,-2.126348 5.49984,-3.194305 1.05695,-0.612627 2.11391,-1.225254 3.20289,-1.856445 2.49346,-1.342845 2.49346,-1.342845 3.39477,-3.56543 -0.7172,-0.269897 -1.4344,-0.539795 -2.17334,-0.817871 -2.83523,-1.185711 -5.39479,-2.556693 -8.05322,-4.096192 -1.52742,-0.882202 -1.52742,-0.882202 -3.0857,-1.782226 -1.0932,-0.636475 -2.18641,-1.272949 -3.31274,-1.928711 -1.1543,-0.669083 -2.30868,-1.338026 -3.46314,-2.006836 C 237.46416,74.200696 228.06685,68.634292 218.67798,63.052306 209.16199,57.397179 199.59653,51.831644 190,46.314513 c 1.48519,-4.043012 3.42878,-7.611463 5.625,-11.3125 0.63164,-1.068633 1.26328,-2.137266 1.91406,-3.238282 0.48211,-0.808242 0.96422,-1.616484 1.46094,-2.449218 z"
style="fill:#000000;fill-opacity:1"
id="path3" />
</svg>

After

Width:  |  Height:  |  Size: 5.3 KiB

View File

@@ -1522,3 +1522,5 @@ appleContainers=Apple containers
changeOrderIndexTitle=Change order index
orderIndex=Index
orderIndexDescription=Explicit index to order this entry relative to others. Lowest indices are shown on top, highest on the bottom
moveToBottom=Move to bottom
moveToTop=Move to top