midnight commander, no file select functions, Antix 21

Forum Forums New users New Users and General Questions midnight commander, no file select functions, Antix 21

  • This topic has 11 replies, 6 voices, and was last updated Aug 1-5:15 pm by DaveW.
Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #86696
    Member
    DaveW

      After installing Antix 21 (64 bit) on Dell e5430, everything seems to work except Midnight Commander (accessed via terminal) has no file select functions. File selection is usually done by holding Shift and pressing the Up or Down key. An alternate means is to select a group of files with “Select Group” on the File dropdown menu. Neither of these functions is working. However, when an indivdual file is highlighted, it can be copied, edited, or whatever.

      I re-installed MC with Synaptic. But the problem persists.

      Your thoughts would be much appreciated.

      #86697
      Forum Admin
      anticapitalista
        Helpful
        Up
        0
        ::

        Check the keys file for the window manager you are using.

        Philosophers have interpreted the world in many ways; the point is to change it.

        antiX with runit - leaner and meaner.

        #86702
        Moderator
        christophe
          Helpful
          Up
          0
          ::

          (I’m using core+X+icewm right now. I assume the defaults are the same as base/full antiX.)

          Ctrl+t will tag a file, then I can use the cursor to move to any other file, press Ctrl+t to tag, & repeat. The filenames turn yellow when tagged. Then the usual F5/F6/etc. keys work as expected, copying/moving/whatever, the selected group.

          confirmed antiX frugaler, since 2019

          #86705
          Member
          DaveW
            Helpful
            Up
            0
            ::

            Actually, most MC shortcut keys do not function.
            Ctr-t does tag a single file, but adjacent files cannot be selected with Shift-up/down. (The file select function does work from the dropdown menu. I had forgotten to insert a pattern in the search box.)

            I have Antix17 32 bit, on another computer. Most MC shortcut keys have never functioned on that either. But the Shift-up/down does select files.

            Both systems use Rox-icewm. The key files in /.icewm differ between the two computers. But I don’t see anything related to MC in either.

            An internet search suggested copying /etc/mc/mc.keymap to ~/home/.config/mc/mc.keymap and editing as needed to avoid conflicts, etc.
            But /etc/mc/mc.keymap is a link to /etc/mc/mc.default.keymap. So I copied the contents of that file to /home/.config/mc/mc.keymap.
            However, the MC functions remain unchanged.

            • This reply was modified 9 months, 1 week ago by DaveW. Reason: corrected file name
            #86710
            Member
            sybok
              Helpful
              Up
              0
              ::

              Hi, I use the below simple three:
              ‘*’ = invert current selection (if none, then select all),
              ‘+/-‘ = (un)select a group, pop-up window to provide “regex” for (de)selection, e.g. ‘[a-z]*.sh’,
              ‘insert’ = (un)select a file.
              These options are listed when you click on the (vertical-top) menu item ‘File’.

              As the wise @anticapitalista pointed out, there can be a override of the aforementioned keys in the desktop environment.
              This happens in IceWM (?) girlfriend uses where Ctrl+Space does not calculate size of the content in a currently highlighted directory.

              BTW, configuration files are located in the following directory ‘~/.config/mc/’.

              • This reply was modified 9 months, 1 week ago by sybok. Reason: Conflicting keys example added
              #86716
              Moderator
              christophe
                Helpful
                Up
                0
                ::

                Check the keys file for the window manager you are using.

                I confirm on my system that the shift+arrow combo DOES work outside of X (console-only).
                As anticapitalista & sybok suggest, Icewm must be overriding those key combos.

                confirmed antiX frugaler, since 2019

                #86724
                Moderator
                BobC
                  Helpful
                  Up
                  0
                  ::

                  I’m not so sure. I have one Dell laptop where it works just fine, and another where it doesn’t. I’m running the 4.9.270 kernel on both. Both are Dell I7’s.

                  On the one where it works, I normally use the IceWM desktop, so tried changing to Rox-IceWM (the default setiing), but it still worked. I also tried enabling and disabling keys in Roxterm and that had no effect, either.

                  I wonder if it’s keyboard related?

                  You could try comparing my keymap from the machine where it works to yours?

                  Tried the same system where it works normally, and rebooted from antiX 21 fresh USB (not updated). Shift up/down to mark didn’t work. Installed keymap from partition where it works, still didn’t work. Installed all files from ~/.config/mc and still didn’t work. Rebooted from HD, back to working.

                  One difference is that the flashdrive boot is not updated. The other is that on my main system, there are MANY additional packages installed.

                  I guess the conclusion I have at this point is that it CAN work, but not sure what the deciding factor is.

                  I did the updates on the fresh USB setup, and they had no effect. At this point it looks like something else I have installed or configured on my main system different than standard is allowing it to work correctly on that setup. Sorry, it doesn’t look like I can be of much help.

                  • This reply was modified 9 months ago by BobC.
                  • This reply was modified 9 months ago by BobC.
                  Attachments:
                  #86734
                  Member
                  blur13
                    Helpful
                    Up
                    0
                    ::

                    I dont use MC but tested it on antix 19, the key combos dont work as expected. Another odd thing is that the cpu spikes when used in terminal emulaters Alacritty and ST, but works fine in RoxTerm.

                    #86735
                    Moderator
                    BobC
                      Helpful
                      Up
                      0
                      ::

                      I use MC all of the time but never knew about those keys

                      I’ll have to investigate what might be affecting the way they map. I ran a ps -aux when I was booted from the flashdrive, and will compare it to one from my normal boot to see if i can spot what’s different.

                      #86740
                      Member
                      DaveW
                        Helpful
                        Up
                        0
                        ::

                        I appreciate everyone’s suggestions.

                        Bob C – Thanks for the mc.keymap file. It is substantially the same as mine (a few minor differences). Too bad most of those key combos don’t work. But at least, fewer functioning keys is less taxing on limited personal memory resources. It would be nice if the few that I remember would work as expected.

                        Strangely, neither mc.keymap (yours or mine) includes any of the “C-x” key combos which are shown on the dropdown lists. For example, the File menu shows Chmod as “C-x c” and Chown as “C-x o”. But neither appear in mc.keymap.

                        However, the “shift-up” and “shift-down” combos are included in the mc.keymap.

                        The /.icewm/keys file does not include either “shift-up” or “shift-down”. It does use “Ctrl+Shift+KP_Up” and “Ctrl+Shift+KP_Down” which are supposed to move windows to top or bottom of screen. However, these don’t seem to accomplish those tasks either. (I don’t need those to work.)

                        #86751
                        Moderator
                        BobC
                          Helpful
                          Up
                          1
                          ::

                          Yes, they have too many keyboard assignments that don’t get used that often where they have designated more than 1 default, and that results in so many keys to remember that I forget them.

                          I made a help screen of them before, but would need to add many more if I was to add them all to it.

                          Here is the current list after slotting in some of the new ones. For IceWM, I wrote a script to make the help screen list. MC needs something similar.

                          mc
                          ==
                          Created Sunday 22 March 2020
                          
                          MC Running from Roxterm
                          
                          In Directory View
                          Alt+F		Find Files anywhere
                          Alt+S		Search for files on this Directory list (as you type)
                          Alt+H		List History line commands
                          Alt+P		Prev History line command
                          Alt+N		Next History line command
                          Alt+.           	Toggle show/hide hidden files
                          Alt+T           Toggle panel display type
                          Alt+Enter	Copy current filename to command line
                          Alt+g		TopOnScreen - Move the selection bar to the first visible entry in the panel
                          Alt+r		MiddleOnScreen - Move the selection bar to the middle visible entry in the panel
                          Alt+j		BottomOnScreen - Move the selection bar to the last visible entry in the panel
                          
                          Displaying content
                          Ctrl+o          Toggle show/hide the panels
                          Ctrl+R          Rescan/Refresh active panel
                          Ctrl+U          Flip panels
                          Alt+0           Open path in other panel
                          Ctrl+-          Frequently used directories, directory hot-list
                          
                          File manipulation and shell commands
                          CopySingle	Shift-F5, F15	
                          MoveSingle	Shift-F6, F16	
                          DeleteSingle	Shift-F8, F18	
                          EditNew	Shift-F4, F14	
                          ViewRaw	Shift-F3, F13	
                          Select	+ ('plus' key)	select (tag) a group of files
                          Unselect	\ ('backslash' key)	unselect a group of files
                          Ctrl+X+C        Change permissions
                          Ctrl+X+o        Change owner
                          Ctrl+X+S        Create symlink
                          Ctrl+X-Ctrl+S   Edit symlink
                          Esc+Tab         Completion, like tab in shell
                          Ctrl+Space      Show directory size
                          Ctrl+X+I        Shows File/Directory info, press again to return to panel
                          Ctrl+X+Q        Quick View – View content of files in a preview window 
                          			   (F7 for search works), press again to return to panel
                          
                          Selecting
                          Insert select single file
                          * (asterisk) select all files, 2x un-selects if all files were selected, or inverts selection if files were selected (using a mask or insert)
                          + (plus) select mask, regular expression can be used
                          – (minus) un-select mask, regular expression can be used
                          
                          File panel actions
                          Action	Default shortcut	Description
                          Up	Up, C-p	move the selection bar to the previous entry in the panel
                          Down	Down, C-n	move the selection bar to the next entry in the panel
                          Left	Left	move the selection bar to the left
                          Right	Right	move the selection bar to the right
                          PageUp	PgUp, Alt-v	move the selection bar one page up
                          PageDown	PgDn, Alt-p	move the selection bar one page down
                          Top	Home, a1, Alt-<	move the selection bar to the first entry in the panel
                          Bottom	End, c1, Alt->	move the selection bar to the last entry in the panel
                          Search	Ctrl-s, Alt-s	start a quick filename search in the directory listing
                          SelectCodepage	Alt-e	change charset of current panel
                          History	Alt-H	show the directory history
                          HistoryNext	Alt-u	move to the next directory in the history
                          HistoryPrev	Alt-y	move to the previous directory in the history
                          SelectInvert	Alt-*	invert selection on the current panel
                          PanelOtherSync	Alt-i	make the current directory of the current panel also the current directory of the other panel
                          PanelOtherCd	Alt-o	If the currently selected file is a directory, load that directory on the other panel and moves the selection to the next file.
                          If the currently selected file is not a directory, load the parent directory on the other panel and moves the selection to the next file
                          PanelOtherCdLink	Alt-l	If the currently selected file is a link to the directory, load that directory on the other panel and moves the selection to the next file
                          CdChild	Ctrl-PgDn	move to the child directory
                          CdParent	Ctrl-PgUp	move to the parent directory
                          CdParentSmart		move to the parent directory only if command line is empty, else erase the previous character in the command line
                          Mark	Ins, Ctrl-t	tag or untag files. To untag files, just retag a tagged file
                          MarkDown	Shift-Down	tag file and move the selection bar to the next entry
                          MarkUp	Shift-Up	tag file and move the selection bar to the previous entry
                          Enter	Enter	
                          Sort		
                          SortReverse		
                          SortPrev		
                          SortNext		
                          SortByName		
                          SortByExt		
                          SortBySize		
                          ScrollLeft		scroll long file names in panel to the left
                          ScrollRight		scroll long file names in panel to the right 
                          
                          • This reply was modified 9 months ago by BobC.
                          #86775
                          Member
                          DaveW
                            Helpful
                            Up
                            0
                            ::

                            BobC., Thank you for your list of frequently used MC commands. I copied it for future reference.

                            I’m looking forward to being able to put them to use, if my non-functioning commands issue can be resoved.

                            Thanks!

                          Viewing 12 posts - 1 through 12 (of 12 total)
                          • You must be logged in to reply to this topic.