ComdTeX

Paleta de comandos e ir a un archivo

ComdTeX tiene una sola paleta con varios modos, y sigue la convención de VS Code que quizá ya conoces:

  • Ctrl+P (o Ctrl+;) la abre en archivos: ir a una nota.
  • Ctrl+Shift+P (o F1) la abre en comandos: ejecutar cualquier cosa que la app pueda hacer.

El alternar de la vista previa ya no está en Ctrl+Shift+P; pasó a Ctrl+Alt+P. El antiguo selector rápido es simplemente el modo archivos de esta paleta.

Cambias de modo escribiendo un prefijo como primer carácter de la caja, y ? los lista todos. La caja muestra en qué modo estás, y Esc la cierra (en la vista de comandos, primero sale de un submenú).

PrefijoModoQué hace
(ninguno)ArchivosBúsqueda difusa de los archivos del vault
>ComandosEjecutar un comando
@Este documentoSaltar a un encabezado, entorno o etiqueta del documento abierto
#EtiquetasEncontrar una etiqueta en cualquier parte del vault; Alt+Enter inserta una referencia a ella
[CitasBuscar en references.bib; Enter inserta [@clave], o añade ; @clave cuando el cursor está dentro de una cita existente
:Línea:12 va a la línea 12, :12:5 a la línea 12, columna 5
?ModosLista estos modos

Ir a un archivo

Escribe parte de un nombre y aparecen los archivos que coinciden con su carpeta junto al nombre, así dos notas llamadas intro se distinguen fácilmente. Sin escribir nada, tus archivos recientes van primero. Las letras que coinciden se resaltan.

  • nota#encabezado salta a otra nota, a ese encabezado, aunque la nota no estuviera abierta.
  • Crear una nota. Cuando nada coincide, una fila ofrece crearla y muestra el destino completo (“Crear papers/nueva-nota.md”). Usa la misma regla de carpeta de destino que el árbol de archivos (ver Los paneles) y explica por qué un nombre no se puede usar. Sin un vault abierto te dice que hace falta uno.
  • Más que archivos. Desde la segunda letra, una búsqueda sin prefijo también lista, en grupos cortos bajo los archivos, los comandos, los encabezados del documento abierto, las etiquetas del vault, las citas (Enter la inserta) y los ajustes por nombre (Enter abre la Configuración en la pestaña correcta). No necesitas saber el prefijo para llegar a ellos.
  • Perdona errores de tipeo. Cuando nada coincide, un grupo “Archivos parecidos” ofrece nombres a uno o dos errores de cada palabra que escribiste: mixng tims encuentra mixing-times.md. Las palabras pueden ir en cualquier orden y las tildes se ignoran.
  • Se mantiene rápida en vaults muy grandes.

Comandos

La vista de comandos lista bastante más de cien comandos en ocho categorías: Editar, Insertar, Matemáticas, Vista, Exportar, IA, Vault y Navegación. Cada fila muestra un ícono y su atajo como teclas. Los comandos con variantes (colores de resaltado, encabezados, listas, símbolos, operaciones matemáticas, entornos) abren un submenú, y con texto seleccionado los comandos de formato envuelven la selección en vez de insertar en el cursor.

Puedes buscar por nombre, por la sintaxis que inserta un comando o por una palabra clave en español o inglés: flowchart, :::theorem, cita, footnote y frontmatter llegan a la entrada correcta. Los resultados se ordenan por relevancia en vez de listarse en un solo montón: ins muestra los comandos de Insertar, las iniciales de un nombre también sirven (en la interfaz en inglés, scf encuentra “Save current file”), se ignoran las tildes (la letra ñ no se trata como n) y el número de resultados se anuncia a los lectores de pantalla. Se dibujan como máximo 60 filas, con una pista de “sigue escribiendo para acotar”.

También puedes escribir como lo dirías. Los verbos de relleno (abrir, ir a, ver, open, show) se ignoran y los sinónimos cuentan como la misma palabra, así que abrir ajustes, open settings y preferencias encuentran Configuración. Cuando un comando encaja claramente, se dejan fuera los nombres que solo comparten letras sueltas.

Recientes y fijados. Los últimos 8 comandos que ejecutaste van primero y los frecuentes suben en la lista. Alt+P, o el botón de fijar de una fila, fija un comando arriba del todo; volver a pulsarlo lo desfija. Un fijado cuyo comando ya no existe se descarta.

El grupo Aquí

Algunos comandos solo tienen sentido bajo el cursor, así que aparecen en un grupo Aquí al principio de la vista de comandos:

  • Normalizar tabla y Editor de tabla cuando el cursor está en una tabla.
  • Completar hueco con IA sobre un hueco {{?}}.
  • Convertir a ecuación en bloque dentro de matemáticas en línea.
  • Cambiar el tipo de entorno dentro de un teorema o un bloque similar.

Si el texto cambió mientras la paleta estaba abierta, estos comandos no hacen nada y lo dicen, en vez de editar una posición desactualizada.

Teclado y lectores de pantalla

La fila seleccionada se desplaza a la vista, la lista es un combobox con opciones, Enter se ignora mientras un método de entrada está componiendo, las filas también se ejecutan con un clic y el diálogo toma el nombre de su modo actual. Mientras la paleta está abierta, los demás atajos globales no se interponen: solo Ctrl+P, Ctrl+Shift+P y F1 siguen funcionando, para cambiar de modo.

Command palette and go to file

ComdTeX has one palette with several modes, and it follows the VS Code convention you may already know:

  • Ctrl+P (or Ctrl+;) opens it on files: go to a note.
  • Ctrl+Shift+P (or F1) opens it on commands: run anything the app can do.

The preview toggle is no longer on Ctrl+Shift+P; it moved to Ctrl+Alt+P. The old quick switcher is simply the files mode of this palette.

You switch mode by typing a prefix as the first character in the box, and ? lists them all. The box shows which mode you are in, and Esc closes it (in the commands view, it steps out of a sub-menu first).

PrefixModeWhat it does
(none)FilesFuzzy search of the vault’s files
>CommandsRun a command
@This documentJump to a heading, environment or label of the open document
#LabelsFind a label anywhere in the vault; Alt+Enter inserts a reference to it
[CitationsSearch references.bib; Enter inserts [@key], or appends ; @key when the cursor is inside an existing citation
:Line:12 goes to line 12, :12:5 to line 12, column 5
?ModesLists these modes

Go to file

Type part of a name and the matching files appear with their folder next to the name, so two notes called intro are easy to tell apart. With nothing typed, your recent files come first. The matching letters are highlighted.

  • note#heading jumps into another note, at that heading, even if the note was not open.
  • Create a note. When nothing matches, a row offers to create it and shows the full destination (“Create papers/new-note.md”). It uses the same target folder rule as the file tree (see The panels) and explains why a name cannot be used. Without an open vault it tells you a vault is needed.
  • More than files. From the second letter, a plain search also lists, in short groups under the files, matching commands, headings of the open document, labels from the vault, citations (Enter inserts it) and settings by name (Enter opens Settings on the right tab). You do not need to know the prefix to reach them.
  • Typos are forgiven. When nothing matches, a “Similar files” group offers names within one or two typos of every word you typed: mixng tims finds mixing-times.md. Words can come in any order and accents are ignored.
  • It stays fast in very large vaults.

Commands

The commands view lists well over a hundred commands in eight categories: Edit, Insert, Math, View, Export, AI, Vault and Navigation. Each row shows an icon and its shortcut as key caps. Commands with variants (highlight colours, headings, lists, symbols, math operations, environments) open a sub-menu, and with text selected the formatting commands wrap the selection instead of inserting at the cursor.

You can search by name, by the syntax a command inserts, or by a keyword in Spanish or English: flowchart, :::theorem, cita, footnote and frontmatter all land on the right entry. Results are ranked rather than listed in one pile: ins shows the Insert commands, scf finds “Save current file”, accents are ignored (the letter ñ is not treated as n), and the result count is announced to screen readers. At most 60 rows are drawn, with a “keep typing to narrow” hint.

You can also type the way you would say it. Filler verbs (open, go to, show, abrir, ver) are ignored and synonyms count as the same word, so open settings, abrir ajustes and preferences all find Settings. Once one command clearly fits, unrelated names that only share scattered letters are left out.

Recent and pinned. The last 8 commands you ran come first and frequent ones rank higher. Alt+P, or the pin button on a row, pins a command to the top of the list; pressing it again unpins it. A pin whose command no longer exists is dropped.

The Here group

Some commands only make sense under the cursor, so they appear in a Here group at the top of the commands view:

  • Normalize table and Table editor when the cursor is in a table.
  • Fill gap with AI on a {{?}} gap.
  • Convert to display math inside inline math.
  • Change environment type inside a theorem or a similar block.

If the text changed while the palette was open, these commands do nothing and say so, instead of editing a stale position.

Keyboard and screen readers

The selected row scrolls into view, the list is a proper combobox with options, Enter is ignored while an input method is composing, rows also run on click, and the dialog is named after its current mode. While the palette is open, other global shortcuts stay out of the way: only Ctrl+P, Ctrl+Shift+P and F1 keep working, to switch the mode.