Check-in [7ca24d3342]
Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Keep old 3-pane CLI menu (for TextyTypey) as plugin. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
7ca24d3342d0dbcecb5f7ee427eb3b07 |
User & Date: | mario 2018-05-16 18:09:46 |
Context
2018-05-16
| ||
18:10 | Workaround to override copy function for RichTextBox - copy selected content as text/plain instead of RTF. check-in: bc311320b6 user: mario tags: trunk | |
18:09 | Keep old 3-pane CLI menu (for TextyTypey) as plugin. check-in: 7ca24d3342 user: mario tags: trunk | |
18:09 | Cancel button = currently just hangs both runspaces. check-in: e419d52757 user: mario tags: trunk | |
Changes
Added contrib/OldCliMenu.ps1.
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | # encoding: utf-8 # api: clicky # type: init # version: 0.1 # title: Old CLI menu # description: brings back the condensed single-page menu # category: ui # state: obsolete # hidden: 1 # nomenu: 1 # # The old CLI menu does not provide for category-submenus, but simply # lists all tools on one page. It lists tools and key combinations in # a 3-column list. # #-- Write out menu list (sorted, 3 columns, with category headers) function Print-Menu0() { param($menu, $cat=".+", $last_cat="", $i=0) # group by category $ls = Sort-Menu ($menu | ? { $_.title -and $_.key -and ($_.category -match $cat) -and ((!$cfg.hidden) -or !$_.hidden) }) $ls | % { if ($last_cat -ne $_.category) { if ($line) { Write-Host ""} Write-Host -f Black (" {0,-74}" -f ($last_cat = $_.category)) $i = 0 } $line = (($i++) % 3 -ne 2) Write-Host -N -f Green ("{0,4}" -f (substr $_.key.split("|")[0] 0 4)) Write-Host -N -f DarkRed ("→") Write-Host -N:$line -f White ("{0,-21}" -f (substr $_.title 0 21)) } echo "" } Set-Alias -Name Print-Menu -Value Print-Menu0 -Scope Global # clear up category filter $global:menu_groups = @( @{key="m"; category="-never-"; title="Menu"} ) |
Added contrib/README.txt.
> > > | 1 2 3 | This folder contains user plugins/tools. - They can be installed by copying them into %APPDATA%\multitool\ - Or by using new Extras → Config → Plugin Manager. |