Northern Commander

Marking

Marking chooses the rows the next copy, move or delete acts on. With nothing marked, they act on the row under the cursor, so one file needs no marking at all.

Marked rows are yellow. Under the list, how many are marked and what they add up to.
KeyAction
SpaceMark
⌘AMark all
*Invert the marks
+Mark by pattern…
-Unmark by pattern…

One row at a time

Space marks the row under the cursor and moves down, so holding it marks a run. On a marked row it unmarks.

Each press marks a row and moves on. Marking a folder works out its size.
  • ⇧↑ and ⇧↓ do the same without leaving the arrows, in either direction. Going back over a row unmarks it.
  • The .. row is never marked.
  • Marked rows stay yellow under the cursor bar, so you can see which the next press will change.

What the line under the list says

While anything is marked, the line under the list says what is marked — 3 files, 5 folders, or 8 marked where that does not fit — and what it adds up to, instead of describing the cursor’s row: rounded to two places, 1.30 GB, and to the byte where there is room.

  • A folder counts in the number, and in the size once its size is known. Until then the total has a > before it, >1.30 GB: it is at least that much.
  • Marking a folder with Space or a shifted arrow works out its size. The total grows as it is counted; Esc stops the counting.
  • F3 on a folder works out its size the same way without marking it, whatever else is marked, and again if the row already shows one.
  • Marking a set — everything, by pattern, the inverse — counts nothing, so marking four hundred folders stays instant. Compute size, in the context menu, counts every marked folder whose size is not known.
  • A folder’s size with a > before the number is at least that much: something inside could not be read. Links inside a folder are not followed, and a marked link adds nothing to the total.
  • A size is kept while the application is open. Leave the folder and come back and it is still there, in either pane, and going into a counted folder shows the size of every folder in it.
  • A size goes when something changes in the folder, or in a folder inside it: copying, moving or deleting there, or the folder’s own date moving. Mark the folder again to count it again, which also works on a folder that shows a size. ⌘R lets go of every size in the folder you are in.

Marking a set

  • ⌘A marks every row, folders included.
  • * marks what is not marked and unmarks what is.
  • + marks every name that matches a pattern; - unmarks them.
  • Mark by tag… lists the Finder tags in this folder and marks the files with the one you pick.
Every JPEG and PNG except DSC_0145. The two lines under the choices are examples.
Name matches
The pattern. ⌥↓ lists the last five accepted here, kept from one run to the next.
Search with
wildcard or regular expression. It is kept for the rest of the run, and back to wildcard after a restart.
Match directories too
Off, a pattern marks files only. A folder marked by a pattern would take everything in it along with the next copy or delete.

A wildcard is matched against the whole name, and capitals and small letters match each other:

Write To match
* · ? Any run of characters · any one character
*.jpg;*.png Either — ; separates patterns. Spaces around each are ignored
*.jpg|DSC_0145* The first, leaving out the second — what follows | is left out
|*.bak Everything except backups
"a;b.txt" A name with ; or | in it. * and ? still match inside the quotes
*.* Every name, with a dot or without
  • [ and { are ordinary characters in a wildcard, as they are in names.
  • A regular expression is found anywhere in the name, so \.txt$ is *.txt. Anything that would need looking back — back-references, lookarounds — is refused, so no pattern can hang the pane.
  • A pattern that cannot be read says why under the field, and the button does nothing until it is fixed. An empty field closes the dialog and marks nothing.

Marking what a search found

Often the quickest way. Type the start of a name in the pane, then ⌘= marks every row the search found; ⌘- unmarks them. Both end the search.

Three letters find the photos; one key marks them all.
  • It marks folders the search found too, and works out their sizes — unlike a pattern.
  • Panes has the rest of searching by typing: names that contain what you typed, wildcards, the next match.

Marking what differs between the panes

Compare folders…, under Compare in the Commands menu, compares the folders in the two panes and marks what differs in both of them, in place of whatever was marked. F5 then takes across exactly what the other side is missing.

What differs is marked in both panes. The line under each list counts it.
  • What is in one pane and not the other is marked there, file or folder.
  • A file in both is marked when the two differ in size or in date. Dates within two seconds of each other count as the same, since some volumes keep a date no finer than that.
  • Where both volumes ignore capitals in a name, Notes.txt and notes.txt are one file. Where either tells them apart, they are two.
A folder in both panes
Leave unmarked compares only what the panes list. Look inside compares everything in the two folders, at every depth, and marks the folder in each pane where something inside it would be marked there.
Compare contents
Reads two files of the same name and size to tell them apart, whatever their dates. It finds files that changed without their size or date changing, and passes over files that differ only in date. It takes as long as reading both does; files of different sizes are not read.
If they differ, mark
Both, only the Newer, or only the Older. Where neither is newer, both are marked.
  • The choices are kept for next time, and are in the Panes settings too.
  • To see every difference at every depth and decide what to do about each, use Synchronize folders.
  • The status line shows the comparison working; Esc stops it and leaves the marks as they were.
  • A notice says what it came to: how many rows were marked in each pane, or that no differences were found. Anything that could not be read is counted there and left unmarked.
  • Compare contents never downloads a file kept in the cloud to read it. Such files are counted on the notice and left unmarked.
  • Compare contents never opens a pipe, a socket or a device either. It is counted as something that could not be read.
  • Hidden files count only in a pane that shows them, and a row a filter hides is not marked.
  • It has no key. Key bindings can give it one.

With the mouse

Do And
⇧-click Marks every row from the cursor to the one clicked
⌘-click Marks or unmarks that row
Drag with the right button Marks the rows it passes over — or unmarks them, if it started on a marked row. Past the top or bottom of the list, the list scrolls
Right-click without dragging Opens the context menu for the marked rows. On a row that is not marked, that row becomes the only one marked first

The left button never marks: it drags files.

When marks go

  • Going to another folder unmarks everything, and coming back does not mark it again.
  • A file that goes — deleted, renamed elsewhere — stops being marked.
  • A row you cannot see is never marked: hiding hidden files, or a filter hiding a row, unmarks it, and it is not marked again when it comes back.
  • After a copy, move or delete, the rows it got all the way through are unmarked. What it did not finish — skipped, failed, or not reached before you stopped it — stays marked, so pressing the key again carries on. Sending one to the background unmarks everything at once.
  • Moving the cursor never changes the marks. A right-click on an unmarked row replaces them, and so does comparing the two panes.

What acts on marked rows

  • F5, F6, F8, ⇧F2, ⌘C, ⌥⌘C, ⌘I, ⌥⌘R and Share… act on every marked row.
  • Marked CSV or TSV files can be joined into one file, or each split into parts, without opening them: see joining and splitting files.
  • A drag started on a marked row carries every marked row; started on another row, only that one.
  • Enter, F3 and F4 act on the cursor’s row, never on the marks, so one key never opens fifty things.
  • F2 with rows marked renames them all from a pattern. Unmark them to rename the one under the cursor. See Renaming.

A filtered pane

⌥⌘F shows only the names that match a pattern — What a pane shows has the whole of it. While it is on, only the rows you can see are marked: ⌘A and a pattern mark within them, and a row the filter hides loses its mark. Clear the filter, under Filter in the Left or Right menu, shows everything again.

A filter narrows the list, not what is inside a folder: a marked folder is still copied or deleted whole. To act on only some of the files inside it, use the only-matching choice of the copy or delete itself.