![]() ![]() Enabling Span apps automatically Design and layout After this, any subsequent launch will span the app automatically across both screens.įigure 4. Navigate to Settings > Surface Duo features > Span app automatically, enable the main feature then also enable the feature specifically for Total Commander. Launch the app which will by default open it on one screen and then drag from the bottom navigation bar over the hinge then release to span the app across both screens. In order to take full advantage of the dual-pane design of the app you can either: About Total Commander window To span or not to span You can get the app from its dedicated website or Google Play.įigure 1. Starting with the 3.30 version release made on February 8, 2022, Total Commander now supports dual-screen features. This dual-pane design is a perfect match for Surface Duo devices, where each file explorer pane can be shown on one of the two screens. Total Commander file manager’s iconic dual-pane design has been one of its most recognizable features, starting from its Windows roots and continuing on Android. ExecuteCommand ( "cm_LoadSelectionFromClip" ) end Clipbrd.SetAsText (sSearchString ) - Restoring what we had in clipboard.We’re excited to announce that one of the most famous dual-pane apps of all time has been enhanced for Surface Duo dual-screen devices. FindClose (Handle ) end - If we've found something, select it! if sFileToSelect ~= "" then Clipbrd.SetAsText (sFileToSelect )ĭC. find (line, sSearchString ) if iPosS ~= nil then bFound = true end end if bFound = true then Line = InputFile : read () if line = nil then break end floor (myfileattr / 0x00000010 ) % 2 = 0 then - Let's now read the file line by line until the the end OR a found. Myfileattr = SysUtils.FileGetAttr (sCompleteFilename ) if myfileattr > 0 then - We got a valid attribute? - We need file, not directory! if math. local Handle ,FindData = SysUtils.FindFirst(params. Let's scan one by one all the files of our directory. Clipbrd.Clear () - Making sure we have nothing in clipboard.ĭC.ExecuteCommand ( "cm_MarkUnmarkAll" ) - Make sure nothing is selected. SSearchString = Clipbrd.GetAsText () - Get the expression to search. Local sFileToSelect = "" local sSearchString = "" if #params = 1 then - We got our parameter? Local sCompleteFilename = "" local InputFile = nil local line = "" local iPosS ![]() local params = local Result = nil local myfileattr When the parameter is detected to be a directory, it will open a new tab in the active panel and switch to it. This following script is an example of usage of the SysUtils.FileGetAttr. lua file extension, it will be recognized by internal editor and it will provide us syntax highlighting specific for this Lua language: Using the internal command cm_ExecuteScript, we may configure a tool bar button that will execute our script.Īssuming this script file is E:\scripts\lua\a, we could have the button configured this way:Īlso, we may use the internal Double Commander Editor for editing our scripts. DC.ExecuteCommand ( "cm_ChangeDir", "E:\\VirtualMachines\\ShareFolder" ) DC.ExecuteCommand ( "cm_ChangeDir", "C:\\Users\\Public\\Music" ) - 7. DC.ExecuteCommand ( "cm_CloseAllTabs" ) - 6. DC.ExecuteCommand ( "cm_FocusSwap", "side=left" ) - 5. DC.ExecuteCommand ( "cm_ChangeDir", "E:\\FakeKey\\Documents\\Music" ) - 4. DC.ExecuteCommand ( "cm_CloseAllTabs" ) - 3. DC.ExecuteCommand ( "cm_FocusSwap", "side=right" ) - 2. In this example, we wrote a simple script that will do the following: More informations on Lua script programming language are available on the web on this link.ģ.1.1. Note: When saving scripts, use UTF-8 encoding without BOM. ft_datetime – for date/time: a returned date will be converted to a formatted date and time string (value depends on your regional settings).ft_fulltext – a full text (multiple text strings), used only for searching with plugins.ft_multiplechoice – a value allowing a limited number of choices.ft_boolean – boolean type: true or false.ft_numeric_floating – a floating point number.ft_numeric_64 – a 64-bit signed number.ft_numeric_32 – a 32-bit signed number.Limitations: only the following data types are supported The Wiki has a page dedicated to writing plugins. It is also possible to write content plugins using Lua script, examples can be found in the program folder ( plugins/wdx/scripts). Double Commander can execute Lua scripts via cm_ExecuteScript command. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |