Time Stamp Hider

by LeonYew-Ley
5
4
3
2
1
New Plugin

Description

Hide timestamp prefixes in Zettelkasten-style internal link display text without changing notes or filenames. - This plugin has not been manually reviewed by Obsidian staff.

Reviews

No reviews yet.

Stats

stars
downloads
0
forks
0
days
NaN
days
NaN
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
0
total issues
0
open issues
0
closed issues
0
commits

Latest Version

Invalid date

Changelog

README file from

Github

Time Stamp Hider

中文说明

Time Stamp Hider is an Obsidian plugin that hides timestamp prefixes in Zettelkasten-style internal link display text.

Demo

Time Stamp Hider demo

It is designed for notes named like this:

2603040057 Zettelkasten笔记法
2603162135 Obsidian 说明书

The links can be displayed like this:

Zettelkasten笔记法
Obsidian 说明书

The original filenames and Markdown content are not changed.

Features

  • Hides timestamp prefixes in Reading View internal links.
  • Hides timestamp prefixes in Live Preview internal links where stable editor rendering allows it.
  • Keeps Markdown source, wikilinks, aliases, frontmatter, filenames, backlinks, renaming, and Obsidian indexing untouched.
  • Supports a custom regular expression for the prefix.
  • Can be enabled or disabled from the plugin settings.

Default Pattern

The default prefix pattern is:

^\d{10}\s+

This matches filenames that start with a 10-digit timestamp followed by one or more spaces.

For example:

2603040057 Zettelkasten笔记法

is displayed as:

Zettelkasten笔记法

What This Plugin Does Not Do

Time Stamp Hider only changes display text in supported rendered editor surfaces.

It does not:

  • Rename files.
  • Modify Markdown files.
  • Modify link targets.
  • Generate aliases.
  • Read or depend on frontmatter titles.
  • Change Obsidian's link resolution, rename behavior, backlinks, outgoing links, search index, or graph data.
  • Patch Obsidian's internal File Explorer, Search Results, Backlinks, Outgoing Links, Quick Switcher, or Graph View UI.

Live Preview Behavior

In Live Preview, the plugin keeps links editable:

  • Normal click reveals the original [[...]] source so you can edit the link.
  • Moving the cursor into or next to the link reveals the original source.
  • Ctrl/Cmd + click opens the linked note.

Settings

Open Settings → Community plugins → Time Stamp Hider.

Available settings:

  • Hide timestamp: Enable or disable display hiding.
  • Timestamp regular expression: Customize the prefix pattern. Invalid regular expressions are ignored and shown in the settings UI.

Installation

Once available in the Obsidian community plugin directory:

  1. Open Settings → Community plugins.
  2. Search for Time Stamp Hider.
  3. Install and enable the plugin.

Manual Installation

Download the latest release files and place them in:

<vault>/.obsidian/plugins/time-stamp-hider/

Required files:

  • main.js
  • manifest.json

Then reload Obsidian and enable the plugin.

Development

Install dependencies:

npm install

Build:

npm run build

The compiled plugin entrypoint is main.js.

License

MIT


中文说明

English README

Time Stamp Hider 是一个 Obsidian 插件,用于在界面显示中隐藏 Zettelkasten 风格文件名开头的时间戳。

演示

Time Stamp Hider 演示

它适用于这样的笔记文件名:

2603040057 Zettelkasten笔记法
2603162135 Obsidian 说明书

显示时可以变成:

Zettelkasten笔记法
Obsidian 说明书

插件不会修改原始文件名,也不会修改 Markdown 内容。

功能

  • 在 Reading View 中隐藏内部链接显示文本开头的时间戳。
  • 在 Live Preview 可稳定处理的范围内隐藏内部链接显示文本开头的时间戳。
  • 不修改 Markdown 源码、双链目标、alias、frontmatter、文件名、反向链接、重命名逻辑或 Obsidian 索引。
  • 支持自定义正则表达式。
  • 可在插件设置中启用或禁用。

默认匹配规则

默认正则表达式:

^\d{10}\s+

它会匹配文件名开头的 10 位数字时间戳和后面的空格。

例如:

2603040057 Zettelkasten笔记法

显示为:

Zettelkasten笔记法

插件不会做什么

Time Stamp Hider 只改变受支持渲染区域里的显示文本。

它不会:

  • 重命名文件。
  • 修改 Markdown 文件。
  • 修改链接目标。
  • 生成 alias。
  • 读取或依赖 frontmatter title。
  • 改变 Obsidian 的链接解析、重命名、反向链接、出链、搜索索引或图谱数据。
  • 修改 Obsidian 内部的文件列表、搜索结果、反向链接、出链、快速切换或图谱视图 UI。

Live Preview 行为

在 Live Preview 中,插件会尽量保持链接可编辑:

  • 普通点击会显示原始 [[...]] 源码,方便编辑链接。
  • 光标移动到链接内部或边界附近时,会显示原始源码。
  • Ctrl/Cmd + 点击会打开链接目标。

设置

打开 Settings → Community plugins → Time Stamp Hider

可用设置:

  • Hide timestamp:启用或禁用隐藏时间戳。
  • Timestamp regular expression:自定义时间戳前缀匹配规则。无效正则会在设置界面中提示,并被插件安全忽略。

安装

插件进入 Obsidian 社区插件目录后:

  1. 打开 Settings → Community plugins
  2. 搜索 Time Stamp Hider
  3. 安装并启用插件。

手动安装

从最新 GitHub Release 下载文件,放到:

<vault>/.obsidian/plugins/time-stamp-hider/

需要的文件:

  • main.js
  • manifest.json

然后重启 Obsidian,并在社区插件设置中启用插件。

开发

安装依赖:

npm install

构建:

npm run build

编译后的插件入口是 main.js

许可证

MIT