tiddly-gittly / TidGi-Desktop

TidGi is an privacy-in-mind, automated, auto-git-backup, freely-deployed knowledge management Desktop note app, based on Tiddlywiki, with REST API for web-clipping and Anki connect. 「 太记 」是一个基于「 太微 TiddlyWiki 」的知识管理桌面应用,能保护隐私内容、高级自动化、自动Git云备份、部署为博客,且可通过RESTAPI与Anki等应用连接。(迭代开发中欢迎试用,开发进度见下方链接)(Under active development, see website below for details)
https://tidgi.fun
Mozilla Public License 2.0
1.74k stars 111 forks source link

feature: Certain tiddlers can be designated as unindexed #420

Closed heavenkiller2018 closed 1 year ago

heavenkiller2018 commented 1 year ago

Description 描述

Certain tiddlers can be designated as unindexed. Occasionally, I compose memos that provide solutions to issues. These memos may feature a substantial quantity of output generated from running code. As a result, the tiddlers can be lengthy and contain a myriad of keywords that might disrupt and impede the search process if indexed.

For instance, if I append the aforementioned output to a tiddler, I only desire the title of said tiddler to be indexed.

❯ sudo apt update
Hit:1 http://dl.google.com/linux/chrome/deb stable InRelease
Get:2 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64  InRelease [1,581 B]
Hit:3 http://cn.archive.ubuntu.com/ubuntu jammy InRelease
Get:4 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Get:5 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64  Packages [361 kB]
Get:7 http://cn.archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]
Hit:8 https://packages.fluentbit.io/ubuntu/focal focal InRelease
Hit:6 https://packagecloud.io/github/git-lfs/ubuntu jammy InRelease
Get:9 http://cn.archive.ubuntu.com/ubuntu jammy-backports InRelease [108 kB]
Get:10 http://security.ubuntu.com/ubuntu jammy-security/main i386 Packages [246 kB]
Hit:11 https://ngrok-agent.s3.amazonaws.com buster InRelease
Get:12 http://cn.archive.ubuntu.com/ubuntu jammy-updates/main i386 Packages [430 kB]
Get:13 http://cn.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [721 kB]
Get:14 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [499 kB]
Get:15 http://cn.archive.ubuntu.com/ubuntu jammy-updates/main amd64 DEP-11 Metadata [99.5 kB]
Get:16 http://cn.archive.ubuntu.com/ubuntu jammy-updates/main amd64 c-n-f Metadata [15.3 kB]
Get:17 http://cn.archive.ubuntu.com/ubuntu jammy-updates/universe i386 Packages [627 kB]
Get:18 http://security.ubuntu.com/ubuntu jammy-security/main amd64 DEP-11 Metadata [41.5 kB]
Get:19 http://security.ubuntu.com/ubuntu jammy-security/main amd64 c-n-f Metadata [10.3 kB]
Get:20 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [740 kB]
Get:21 http://cn.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [932 kB]
Get:22 http://security.ubuntu.com/ubuntu jammy-security/universe i386 Packages [536 kB]
Get:23 http://cn.archive.ubuntu.com/ubuntu jammy-updates/universe Translation-en [199 kB]
Get:24 http://cn.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 DEP-11 Metadata [274 kB]
Get:25 http://security.ubuntu.com/ubuntu jammy-security/universe Translation-en [131 kB]
Get:26 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 DEP-11 Metadata [21.9 kB]
Get:27 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 c-n-f Metadata [15.6 kB]
Get:28 http://cn.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 c-n-f Metadata [20.5 kB]
Get:29 http://cn.archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 DEP-11 Metadata [940 B]
Get:30 http://cn.archive.ubuntu.com/ubuntu jammy-backports/main amd64 DEP-11 Metadata [7,992 B]
Get:31 http://cn.archive.ubuntu.com/ubuntu jammy-backports/universe amd64 DEP-11 Metadata [16.9 kB]
Fetched 6,285 kB in 4s (1,490 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
200 packages can be upgraded. Run 'apt list --upgradable' to see them.

Additional Context 额外上下文

No response

linonetwo commented 1 year ago

Yes, and you may want to use "keywords" field instead.

One is use custom search bar, with a custom filter, another option is use https://tw-cpl.netlify.app/#Plugin_202203243721287 to put long text into another field, like "logs" field, and it won't be indexed or searched normally.

Always, you should ask these general questions in the talk forum, instead of in the GitHub! But, welcome to tiddlywiki.

linonetwo commented 1 year ago

And don't forget, with zx-script, you can write

await $`apt update && apt upgrade -y`

using zx script plugin. But it might not support sudo password prompt...