Allow m-prefixing #annotate

This is the same as m-prefixing #overview
This commit is contained in:
Pasi Kallinen
2026-04-12 19:55:09 +03:00
parent 635dca05d5
commit 8d6ab2f9ab
4 changed files with 10 additions and 1 deletions

View File

@@ -1247,6 +1247,9 @@ Autocompletes.
Default key is \(oqM-A\(cq, and also \(oq\(haN\(cq if
.op number_pad
is on.
.lp ""
Preceding #annotate with the \(oqm\(cq prefix is the same as
#overview with the prefix.
.lp "#apply "
Apply (use) a tool such as a pick-axe, a key, or a lamp.
Default key is \(oqa\(cq.

View File

@@ -1286,6 +1286,10 @@ dungeon level. All levels with annotations are displayed by the
``\texttt{\#overview}'' command. Autocompletes.
Default key is `\texttt{M-A}',
and also `\texttt{\textasciicircum N}' if \textit{number\textunderscore pad} is on.
\\
%.lp ""
Preceding \#annotate with the `\texttt{m}' prefix is the same as
\#overview with the prefix.
%.lp
\item[\#apply]
Apply (use) a tool such as a pick-axe, a key, or a lamp.

View File

@@ -1673,7 +1673,7 @@ struct ext_func_tab extcmdlist[] = {
{ M('a'), "adjust", "adjust inventory letters",
doorganize, IFBURIED | AUTOCOMPLETE | GENERALCMD, NULL },
{ M('A'), "annotate", "name current level",
donamelevel, IFBURIED | AUTOCOMPLETE | GENERALCMD, NULL },
donamelevel, IFBURIED | AUTOCOMPLETE | GENERALCMD | CMD_M_PREFIX, NULL },
{ 'a', "apply", "apply (use) a tool (pick-axe, key, lamp...)",
doapply, CMD_M_PREFIX, NULL },
{ C('x'), "attributes", "show your attributes",

View File

@@ -2564,6 +2564,8 @@ query_annotation(d_level *lev)
int
donamelevel(void)
{
if (iflags.menu_requested)
return dooverview();
query_annotation((d_level *) 0);
return ECMD_OK;
}