📄 zgv.texi
字号:
@item Esc@kindex x (Selector)@itemx xQuit zgv normally.@kindex ^C@item ^CQuit zgv in a rather immediate and nasty way, by sending @samp{SIGINT}.(This is actually dealt with by svgalib.) You should only use ^C to quitif zgv appears to lock up or takes an unbearably long time to dosomething.(Technically it may not be @kbd{^C} which sends @samp{SIGINT}, but youwould have to have a strange setup for this to be the case.)@end table@node Thumbnails, Screen Layout, Exiting zgv, The File Selector@comment node-name, next, previous, up@section Thumbnails@cindex thumbnails@cindex picture thumbnails@cindex file thumbnails@cindex xv-compatible thumbnails(This section is deliberately early on in the manual, as thumbnails areprobably the most important feature of the file selector, so it's bestthat you know how to create/update them sooner rather than later.)Thumbnails are small versions of the pictures they represent, and aredisplayed by the file selector if they exist. zgv uses xv-compatiblethumbnails --- if you create thumbnails with xv they will work with zgv,and vice versa. zgv's thumbnails are also compatible with the Gimp, andxzgv.If no thumbnail exists for a file or directory, a small `document' or`folder' graphic appears instead.@menu* Updating Thumbnails:: How to create or update thumbnails.* Thumbnail Storage:: Where thumbnails are stored.* Thumbnail Issues:: Thumbnails need all 256 colours.@end menu@node Updating Thumbnails, Thumbnail Storage, Thumbnails, Thumbnails@comment node-name, next, previous, up@subsection Updating Thumbnails@cindex updating thumbnails@cindex creating thumbnails@cindex making thumbnails@cindex thumbnails, creating@cindex thumbnails, updating@cindex directory, updating thumbnails in a@cindex recursively, updating thumbnails@cindex tree, updating all thumbnails in a directoryWhile thumbnails can be made relatively quickly, it's by no means aninstant process. For this reason, thumbnails have to be created inadvance, and are stored as files in their own right in (usually) asubdirectory @file{.xvpics}.zgv never creates/updates thumbnails without you telling it to. So, ifyou enter a directory where the picture files don't have any thumbnails,or where the thumbnails seem to be out of date, you should press@kbd{u}.Alternatively, you can create/update thumbnails for the currentdirectory and all subdirectories by using @kbd{Alt-u}. But be warnedthat a recursive update can take some time!@table @kbd@kindex u (Selector)@item uCreate thumbnails for any files which don't have them, and updatethumbnails which are older than than the corresponding file. While thisis going on, the text @samp{updating index of} prefixes the usualdisplay of the current directory's name.You can press @kbd{Esc} while the update is in progress to abort it; zgvwill stop once it has finished the thumbnail it is currently working on(if any).If you switch consoles while the update is in progress, it will continueto run `in the background'. When you switch back, if the update is stillin progress, it may look as though zgv is doing nothing (or the screenmay look a bit confusing) for some time. The reason is that the screenis not updated unless zgv is running on the currently displayed console(this is unfortunately necessary). The screen is redrawn when thecurrent thumbnail has been dealt with.@kindex Alt-u (Selector)@item Alt-uCreate/update thumbnails for all files in the current directory and allsubdirectories --- in other words, do a recursive update. This can takesome time, so you are prompted to confirm that you really want to dothis (@pxref{Dialog Boxes}). As above, it will continue running `in thebackground' if you switch consoles, and you can press @kbd{Esc} toabort.@kindex d (Selector)@item dCreate thumbnails for subdirectories. Don't confuse this with therecursive update; this generates thumbnails for the directories@emph{themselves}, not the files within them. (Most people probablywon't want to bother with these, as they're not as helpful as you mightthink.) These consist of the first four files in the subdir, squeezedtogether into a single thumbnail. There is (currently) no `update'mechanism for subdir thumbnails --- all of them are newly created eachtime you press @kbd{d}.@end table@node Thumbnail Storage, Thumbnail Issues, Updating Thumbnails, Thumbnails@comment node-name, next, previous, up@subsection Thumbnail Storage@cindex thumbnails, storage@cindex thumbnails, location@cindex storage of thumbnails@cindex location of thumbnailsNormally, thumbnails are stored in the subdirectory @file{.xvpics}(creating the dir first if needed), with the same name as the filenamethey represent. However, there are times when using @file{.xvpics} isn'tpossible --- for example, the filesystem may be read-only (such as on aCD), or may not support the @file{.xvpics} name (such as on an@samp{msdos} filesystem), or you may not have permission to write to thedirectory.In these situations, zgv stores the thumbnails elsewhere. They go indirectories under the @file{.xvpics} dir in your home directory. Thename for the directory they go in there is the directory name they werefound in, but with slashes (@code{/}) converted to underscores(@code{_}).An example should make things clearer. Say zgv needs to create athumbnail for @file{wibble.jpg}, in the directory @file{/foo/bar/baz},but can't use @file{.xvpics}. It will put the thumbnail in@file{$HOME/.xvpics/_foo_bar_baz/wibble.jpg}, creating directories asnecessary.Where a thumbnail is stored makes virtually no difference to how zgvworks; the main difference is that the latter, more indirect way ofstoring thumbnails means that thumbnails will take slighter longer todisplay.@node Thumbnail Issues, , Thumbnail Storage, Thumbnails@comment node-name, next, previous, up@subsection Thumbnail Issues@c XXX could do with one here which doesn't start "thumbnails" :-)@cindex thumbnails, issues relating to@cindex thumbnails, problems with displayingThe thumbnails used in zgv require 256 colours to display.Unfortunately, the rest of zgv's file selector needs an additional fivecolours. Normally this is dealt with by finding the `closest' thumbnailcolours, and (this is the important part) changing them to the fileselector colours. The disturbance to the thumbnails should be barelynoticeable.(All the same, you can disable this using the config file setting@samp{fs-perfect-cols} (@pxref{Configuring zgv}). But bear in mindthat the selector will then look rather strange!)In 16-colour mode (@pxref{16-colour File Selector}), the way it worksmeans fewer colours are needed, and the file selector's five colours canbe (and are) separate from the thumbnail colours.@node Screen Layout, Moving Around The List, Thumbnails, The File Selector@comment node-name, next, previous, up@section Screen Layout@cindex screen layout@cindex layout, screen@cindex file selector, layout of@c I avoid saying "dirs are shown in brackets" here because that might@c be gratuitously confusing for American English speakers, especially@c since [square brackets] (the US meaning of brackets, IIRC) *are*@c used for showing dirs in some other programs.@c@c Yes, I know I could instead say they're in parentheses. Shut up. :-)The file selector is simply a list of subdirectories and filenames,along with any thumbnails that exist for them. The list is inasciibetical order (but you can change this; @pxref{Changing the SortingOrder}). Names of directories are shown (like this), and they are shownin order at the beginning of the list, before all the picture files.Long filenames are truncated to fit; three dots indicate where this hashappened. (@xref{Other File Sel Commands}, for how to display the fullfilename.)The list is often larger than can fit on the screen at once. If this isthe case, only part is shown at a time, but you can move around the listwith the cursor keys and the like.The colours used for the file selector can be changed, if you dislikethe defaults (@pxref{Configuring zgv}).@node Moving Around The List, Viewing a File, Screen Layout, The File Selector@comment node-name, next, previous, up@section Moving Around The List@cindex moving around the file list@cindex file selector, moving around@cindex file selector, cursor movement in@cindex cursor@cindex choosing a file@cindex selecting a file@cindex picture, selectingThe cursor in zgv is (normally) shown as a `raised' entry in the list.The cursor has two main functions:@itemize @minus@itemIt selects a file for `view', `tag' etc. commands to operate on.@itemIt determines which part of the list is shown, as the part of the listshown onscreen always contains the cursor.@end itemizeThere are many commands for moving the cursor. In summary, most`special' keys like the cursors do what you'd imagine they do --- also,a few Emacs-like keys, a few vi-like keys, and the SinclairSpectrum-style (!) QAOP keys are supported.@c This para should really go at the root file-sel node, but it@c just doesn't fit there. It's probably tolerable to have it here I@c guess; it's a good bet that people would read this before reading any@c later stuff, and/or that they'd guess the "Using a Mouse" section@c might be relevant. ;-)Using a mouse in the file selector is not covered here. @xref{MouseFuncs in the File Selector}, for details of what you can do with amouse. (Experienced users may wish to consult the @cite{Tom & Jerry} and@cite{Pinky and the Brain} cartoons for further enlightenment on thissubject.)@table @kbd@kindex Cursor Up (Selector)@item Cursor Up@kindex ^P (Selector)@itemx ^P@kindex k (Selector)@itemx k@kindex q (Selector)@itemx qMove up. Moving up from a topmost entry moves to the bottom of theprevious column.@kindex Cursor Down (Selector)@item Cursor Down@kindex ^N (Selector)@itemx ^N@kindex j (Selector)@itemx j@kindex a (Selector)@itemx aMove down. Moving down from a bottommost entry moves to the top of thenext column.@kindex Cursor Left (Selector)@item Cursor Left@kindex ^B (Selector)@itemx ^B@kindex h (Selector)@itemx h@kindex o (Selector)@itemx oMove left one column.@kindex Cursor Right (Selector)@item Cursor Right@kindex ^F (Selector)@itemx ^F@kindex l (Selector)@itemx l@kindex p (Selector)@itemx pMove right one column.@kindex Page Up (Selector)@item Page Up@kindex ^U (Selector)@itemx ^UMove the cursor back (nearly) a page.@kindex Page Down (Selector)@item Page Down@kindex ^V (Selector)@itemx ^VMove the cursor forward (nearly) a page.@kindex Home (Selector)@item Home@kindex ^A (Selector)@itemx ^AMove the cursor to the start of the list.@kindex End (Selector)@item End@kindex ^E (Selector)@itemx ^EMove the cursor to the end of the list.@kindex g (Selector)@item g@kindex ' (Selector)@itemx 'Move the cursor to the first filename starting with the next keypressed, which would generally be a letter or number. Case issignificant; @kbd{a} and @kbd{A} are different.If no files start with the specified character, it moves to the firstfile which starts with a later char (in asciibetical order). If thereare none for which this is the case, it moves to the last file ---unless there are no files (just directories), in which case it has noeffect.@end table@node Viewing a File, Dialog Boxes, Moving Around The List, The File Selector@comment node-name, next, previous, up@section Viewing a File@cindex viewing a file@cindex file selector, viewing a file from the@cindex picture, viewing aThere are two ways to view files from the file selector. The usual wayis to press @kbd{Enter} when you've moved the cursor to the file toview. However, you can also view tagged files as a `slideshow', which isdescribed later (@pxref{Tagging}).@table @kbd@kindex Enter (Selector)@item EnterView a picture file, or if the cursor is on a subdirectory, make thatthe current directory. A progress indicator is shown when reading in afile --- while this is onscreen, you can use @kbd{Esc} to abort.@end table@node Dialog Boxes, Tagging, Viewing a File, The File Selector@comment node-name, next, previous, up@section Dialog Boxes@cindex dialog boxes@cindex messages@cindex errors@cindex directory dialogIf zgv has a serious problem reading a file, it will give an error.Errors are shown in boxes which appear in the middle of the screen ---they stay there until you press @kbd{Enter} or @kbd{Esc} (if using amouse, clicking @samp{OK} has the same effect).zgv also uses similar dialog boxes for other things:@itemize @minus@itemGetting a yes or no answer. @kbd{Enter} or @kbd{y} picks `yes';@kbd{Esc} or @kbd{n} picks no. (Again, you can click on the relevantbutton with the mouse to do the same.)@itemReading a directory name. Here you should type the directory name then@kbd{Enter}, or press @kbd{Esc} to abort. In fact, this line-inputdialog allows a certain amount of editing, and so supports these
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -