mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-15 04:05:11 +01:00
docs: Improve formatting of literals in gio documentation
There was no distinction between literals which need to be typed, and normal words in the prose. Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
parent
04af8f12f0
commit
7bac53d41f
@ -178,9 +178,9 @@
|
|||||||
<listitem>
|
<listitem>
|
||||||
<para>Concatenates the given files and prints them to the standard
|
<para>Concatenates the given files and prints them to the standard
|
||||||
output.</para>
|
output.</para>
|
||||||
<para>The cat command works just like the traditional cat utility.</para>
|
<para>The <command>cat</command> command works just like the traditional <command>cat</command> utility.</para>
|
||||||
<para>Note: just pipe through cat if you need its formatting options
|
<para>Note: just pipe through <command>cat</command> if you need its formatting options
|
||||||
like -n, -T or other.</para>
|
like <option>-n</option>, <option>-T</option> or other.</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
@ -195,7 +195,7 @@
|
|||||||
<para>Copies one or more files from <replaceable>SOURCE</replaceable>
|
<para>Copies one or more files from <replaceable>SOURCE</replaceable>
|
||||||
to <replaceable>DESTINATION</replaceable>. If more than one source
|
to <replaceable>DESTINATION</replaceable>. If more than one source
|
||||||
is specified, the destination must be a directory.</para>
|
is specified, the destination must be a directory.</para>
|
||||||
<para>The copy command is similar to the traditional cp utility.</para>
|
<para>The <command>copy</command> command is similar to the traditional <command>cp</command> utility.</para>
|
||||||
<refsect3>
|
<refsect3>
|
||||||
<title>Options</title>
|
<title>Options</title>
|
||||||
<variablelist>
|
<variablelist>
|
||||||
@ -235,7 +235,7 @@
|
|||||||
</term>
|
</term>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>Shows information about the given locations.</para>
|
<para>Shows information about the given locations.</para>
|
||||||
<para>The info command is similar to the traditional ls utility.</para>
|
<para>The <command>info</command> command is similar to the traditional <command>ls</command> utility.</para>
|
||||||
<refsect3>
|
<refsect3>
|
||||||
<title>Options</title>
|
<title>Options</title>
|
||||||
<variablelist>
|
<variablelist>
|
||||||
@ -252,7 +252,7 @@
|
|||||||
<term><option>-a</option> <option>--attributes=<replaceable>ATTRIBUTES</replaceable></option></term>
|
<term><option>-a</option> <option>--attributes=<replaceable>ATTRIBUTES</replaceable></option></term>
|
||||||
<listitem><para>The attributes to get.</para>
|
<listitem><para>The attributes to get.</para>
|
||||||
<para>Attributes can be specified with their GIO name, e.g.
|
<para>Attributes can be specified with their GIO name, e.g.
|
||||||
standard::icon, or just by namespace, e.g. unix, or by '*',
|
<literal>standard::icon</literal>, or just by namespace, e.g. <literal>unix</literal>, or by <literal>*</literal>,
|
||||||
which matches all attributes. Several attributes or groups
|
which matches all attributes. Several attributes or groups
|
||||||
of attributes can be specified, separated by comma.</para>
|
of attributes can be specified, separated by comma.</para>
|
||||||
<para>By default, all attributes are listed.</para></listitem>
|
<para>By default, all attributes are listed.</para></listitem>
|
||||||
@ -275,7 +275,7 @@
|
|||||||
<listitem>
|
<listitem>
|
||||||
<para>Lists the contents of the given locations. If no location is
|
<para>Lists the contents of the given locations. If no location is
|
||||||
given, the contents of the current directory are shown.</para>
|
given, the contents of the current directory are shown.</para>
|
||||||
<para>The list command is similar to the traditional ls utility.</para>
|
<para>The <command>list</command> command is similar to the traditional <command>ls</command> utility.</para>
|
||||||
<refsect3>
|
<refsect3>
|
||||||
<title>Options</title>
|
<title>Options</title>
|
||||||
<variablelist>
|
<variablelist>
|
||||||
@ -283,7 +283,7 @@
|
|||||||
<term><option>-a</option> <option>--attributes=<replaceable>ATTRIBUTES</replaceable></option></term>
|
<term><option>-a</option> <option>--attributes=<replaceable>ATTRIBUTES</replaceable></option></term>
|
||||||
<listitem><para>The attributes to get.</para>
|
<listitem><para>The attributes to get.</para>
|
||||||
<para>Attributes can be specified with their GIO name, e.g.
|
<para>Attributes can be specified with their GIO name, e.g.
|
||||||
standard::icon, or just by namespace, e.g. unix, or by '*',
|
<literal>standard::icon</literal>, or just by namespace, e.g. <literal>unix</literal>, or by <literal>*</literal>,
|
||||||
which matches all attributes. Several attributes or groups
|
which matches all attributes. Several attributes or groups
|
||||||
of attributes can be specified, separated by comma.</para>
|
of attributes can be specified, separated by comma.</para>
|
||||||
<para>By default, all attributes are listed.</para></listitem>
|
<para>By default, all attributes are listed.</para></listitem>
|
||||||
@ -316,12 +316,12 @@
|
|||||||
<arg choice="opt"><replaceable>HANDLER</replaceable></arg>
|
<arg choice="opt"><replaceable>HANDLER</replaceable></arg>
|
||||||
</term>
|
</term>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>If no handler is given, the mime command lists the
|
<para>If no handler is given, the <command>mime</command> command lists the
|
||||||
registered and recommended applications for the mimetype.
|
registered and recommended applications for the mimetype.
|
||||||
If a handler is given, it is set as the default handler for
|
If a handler is given, it is set as the default handler for
|
||||||
the mimetype.</para>
|
the mimetype.</para>
|
||||||
<para>Handlers must be specified by their desktop file name,
|
<para>Handlers must be specified by their desktop file name,
|
||||||
including the extension. Example: org.gnome.gedit.desktop.</para>
|
including the extension. Example: <literal>org.gnome.gedit.desktop</literal>.</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
@ -333,7 +333,7 @@
|
|||||||
</term>
|
</term>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>Creates directories.</para>
|
<para>Creates directories.</para>
|
||||||
<para>The mkdir command is similar to the traditional mkdir utility.</para>
|
<para>The <command>mkdir</command> command is similar to the traditional <command>mkdir</command> utility.</para>
|
||||||
<refsect3>
|
<refsect3>
|
||||||
<title>Options</title>
|
<title>Options</title>
|
||||||
<variablelist>
|
<variablelist>
|
||||||
@ -356,7 +356,7 @@
|
|||||||
<para>Monitors files or directories for changes, such as creation
|
<para>Monitors files or directories for changes, such as creation
|
||||||
deletion, content and attribute changes, and mount and unmount
|
deletion, content and attribute changes, and mount and unmount
|
||||||
operations affecting the monitored locations.</para>
|
operations affecting the monitored locations.</para>
|
||||||
<para>The monitor command uses the GIO file monitoring APIs to do
|
<para>The <command>monitor</command> command uses the GIO file monitoring APIs to do
|
||||||
its job. GIO has different implementations for different platforms.
|
its job. GIO has different implementations for different platforms.
|
||||||
The most common implementation on Linux uses inotify.</para>
|
The most common implementation on Linux uses inotify.</para>
|
||||||
<refsect3>
|
<refsect3>
|
||||||
@ -400,15 +400,15 @@
|
|||||||
<arg choice="opt" rep="repeat"><replaceable>LOCATION</replaceable></arg>
|
<arg choice="opt" rep="repeat"><replaceable>LOCATION</replaceable></arg>
|
||||||
</term>
|
</term>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>Provides commandline access to various aspects of GIOs mounting
|
<para>Provides commandline access to various aspects of GIO’s mounting
|
||||||
functionality.</para>
|
functionality.</para>
|
||||||
<para>Mounting refers to the traditional concept of arranging multiple
|
<para>Mounting refers to the traditional concept of arranging multiple
|
||||||
file systems and devices in a single tree, rooted at /. Classical
|
file systems and devices in a single tree, rooted at <filename>/</filename>. Classical
|
||||||
mounting happens in the kernel and is controlle by the mount utility.
|
mounting happens in the kernel and is controlle by the mount utility.
|
||||||
GIO expands this concept by introducing mount daemons that can make
|
GIO expands this concept by introducing mount daemons that can make
|
||||||
file systems available to GIO applications without kernel
|
file systems available to GIO applications without kernel
|
||||||
involvement.</para>
|
involvement.</para>
|
||||||
<para>GIO mounts can require authentication, and the mount command
|
<para>GIO mounts can require authentication, and the <command>mount</command> command
|
||||||
may ask for user IDs, passwords, and so on, when required.</para>
|
may ask for user IDs, passwords, and so on, when required.</para>
|
||||||
<refsect3>
|
<refsect3>
|
||||||
<title>Options</title>
|
<title>Options</title>
|
||||||
@ -486,7 +486,7 @@
|
|||||||
<para>Moves one or more files from <replaceable>SOURCE</replaceable>
|
<para>Moves one or more files from <replaceable>SOURCE</replaceable>
|
||||||
to <replaceable>DESTINATION</replaceable>. If more than one source
|
to <replaceable>DESTINATION</replaceable>. If more than one source
|
||||||
is specified, the destination must be a directory.</para>
|
is specified, the destination must be a directory.</para>
|
||||||
<para>The move command is similar to the traditional mv utility.</para>
|
<para>The <command>move</command> command is similar to the traditional <command>mv</command> utility.</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
@ -501,7 +501,7 @@
|
|||||||
<para>GIO obtains this information from the shared-mime-info
|
<para>GIO obtains this information from the shared-mime-info
|
||||||
database, with per-user overrides stored in
|
database, with per-user overrides stored in
|
||||||
<filename><envar>$XDG_DATA_HOME</envar>/applications/mimeapps.list</filename>.</para>
|
<filename><envar>$XDG_DATA_HOME</envar>/applications/mimeapps.list</filename>.</para>
|
||||||
<para>The mime command can be used to change the default handler for
|
<para>The <command>mime</command> command can be used to change the default handler for
|
||||||
a mimetype.</para>
|
a mimetype.</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
@ -514,7 +514,7 @@
|
|||||||
</term>
|
</term>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>Renames a file.</para>
|
<para>Renames a file.</para>
|
||||||
<para>The rename command is similar to the traditional rename utility.</para>
|
<para>The <command>rename</command> command is similar to the traditional <command>rename</command> utility.</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
@ -527,10 +527,10 @@
|
|||||||
<listitem>
|
<listitem>
|
||||||
<para>Deletes each given file.</para>
|
<para>Deletes each given file.</para>
|
||||||
<para>This command removes files irreversibly. If you want a reversible
|
<para>This command removes files irreversibly. If you want a reversible
|
||||||
way to remove files, see the trash command.</para>
|
way to remove files, see the <command>trash</command> command.</para>
|
||||||
<para>Note that not all URI schemes that are supported by GIO may
|
<para>Note that not all URI schemes that are supported by GIO may
|
||||||
allow deletion of files.</para>
|
allow deletion of files.</para>
|
||||||
<para> The remove command is similar to the traditional rm utility.</para>
|
<para>The <command>remove</command> command is similar to the traditional <command>rm</command> utility.</para>
|
||||||
<refsect3>
|
<refsect3>
|
||||||
<title>Options</title>
|
<title>Options</title>
|
||||||
<variablelist>
|
<variablelist>
|
||||||
@ -553,7 +553,7 @@
|
|||||||
<para>Reads from standard input and saves the data to the given
|
<para>Reads from standard input and saves the data to the given
|
||||||
location.</para>
|
location.</para>
|
||||||
<para>This is similar to just redirecting output to a file using
|
<para>This is similar to just redirecting output to a file using
|
||||||
traditional shell syntax, but the save command allows saving to
|
traditional shell syntax, but the <command>save</command> command allows saving to
|
||||||
location that GIO can write to.</para>
|
location that GIO can write to.</para>
|
||||||
<refsect3>
|
<refsect3>
|
||||||
<title>Options</title>
|
<title>Options</title>
|
||||||
@ -601,21 +601,23 @@
|
|||||||
<listitem>
|
<listitem>
|
||||||
<para>Sets a file attribute on a file.</para>
|
<para>Sets a file attribute on a file.</para>
|
||||||
<para>File attributes can be specified with their GIO name, e.g
|
<para>File attributes can be specified with their GIO name, e.g
|
||||||
standard::icon. Note that not all GIO file attributes are writable.
|
<literal>standard::icon</literal>. Note that not all GIO file attributes are writable.
|
||||||
Use the --query-writable option of the info command to list
|
Use the <option>--query-writable</option> option of the <command>info</command> command to list
|
||||||
writable file attributes.</para>
|
writable file attributes.</para>
|
||||||
<para>If the <replaceable>TYPE</replaceable> is unset,
|
<para>If the <replaceable>TYPE</replaceable> is unset,
|
||||||
<replaceable>VALUE</replaceable> does not have to be specified.
|
<replaceable>VALUE</replaceable> does not have to be specified.
|
||||||
If the type is stringv, multiple values can be given.</para>
|
If the <replaceable>TYPE</replaceable> is <literal>stringv</literal>, multiple values can be given.</para>
|
||||||
<refsect3>
|
<refsect3>
|
||||||
<title>Options</title>
|
<title>Options</title>
|
||||||
<variablelist>
|
<variablelist>
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term><option>-t</option>, <option>--type=<replaceable>TYPE</replaceable></option></term>
|
<term><option>-t</option>, <option>--type=<replaceable>TYPE</replaceable></option></term>
|
||||||
<listitem><para>Specifies the type of the attribute. Supported
|
<listitem><para>Specifies the type of the attribute. Supported
|
||||||
types are string, stringv, bytestring, boolean, uint32, int32,
|
types are <literal>string</literal>, <literal>stringv</literal>,
|
||||||
uint64, int64 and unset.</para>
|
<literal>bytestring</literal>, <literal>boolean</literal>,
|
||||||
<para>If the type is not specified, string is assumed.</para>
|
<literal>uint32</literal>, <literal>int32</literal>,
|
||||||
|
<literal>uint64</literal>, <literal>int64</literal> and <literal>unset</literal>.</para>
|
||||||
|
<para>If the type is not specified, <literal>string</literal> is assumed.</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
@ -641,10 +643,10 @@
|
|||||||
<filename><envar>$XDG_DATA_HOME</envar>/Trash</filename>.</para>
|
<filename><envar>$XDG_DATA_HOME</envar>/Trash</filename>.</para>
|
||||||
<para>Note that moving files to the trash does not free up space on
|
<para>Note that moving files to the trash does not free up space on
|
||||||
the file system until the "Trashcan" is emptied. If you are interested
|
the file system until the "Trashcan" is emptied. If you are interested
|
||||||
in deleting a file irreversibly, see the remove command.</para>
|
in deleting a file irreversibly, see the <command>remove</command> command.</para>
|
||||||
<para>Inspecting and emptying the "Trashcan" is normally supported by
|
<para>Inspecting and emptying the "Trashcan" is normally supported by
|
||||||
graphical file managers such as nautilus, but you can also see the
|
graphical file managers such as Nautilus, but you can also see the
|
||||||
trash with the command: gio list trash://.</para>
|
trash with the command: <command>gio list trash://</command>.</para>
|
||||||
<refsect3>
|
<refsect3>
|
||||||
<title>Options</title>
|
<title>Options</title>
|
||||||
<variablelist>
|
<variablelist>
|
||||||
@ -671,7 +673,7 @@
|
|||||||
<para>Lists the contents of the given locations recursively, in a
|
<para>Lists the contents of the given locations recursively, in a
|
||||||
tree-like format. If no location is given, it defaults to the current
|
tree-like format. If no location is given, it defaults to the current
|
||||||
directory.</para>
|
directory.</para>
|
||||||
<para>The tree command is similar to the traditional tree utility.</para>
|
<para>The <command>tree</command> command is similar to the traditional <command>tree</command> utility.</para>
|
||||||
<refsect3>
|
<refsect3>
|
||||||
<title>Options</title>
|
<title>Options</title>
|
||||||
<variablelist>
|
<variablelist>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user