← 返回命令列表

Linux command

nap 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Launch the snippet TUI

nap

Create a new snippet

nap "[snippet_name]"

List all snippets

nap list

Fuzzy find and copy a snippet

nap [query]

说明

nap is a code snippet manager with both a CLI and TUI interface. The TUI lets you browse, manage, and organize code snippets directly in your terminal, while the CLI provides quick access with fuzzy searching. Snippets can be created from files or stdin, organized into folders, and copied to the clipboard. The tool is configured through $XDG_CONFIG_HOME/nap/config.yaml.

FAQ

What is the nap command used for?

nap is a code snippet manager with both a CLI and TUI interface. The TUI lets you browse, manage, and organize code snippets directly in your terminal, while the CLI provides quick access with fuzzy searching. Snippets can be created from files or stdin, organized into folders, and copied to the clipboard. The tool is configured through $XDG_CONFIG_HOME/nap/config.yaml.

How do I run a basic nap example?

Run `nap` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

Where can I find more nap examples?

This page includes 4 examples for nap, plus related commands for nearby Linux tasks.