# Preserve Library View search when saving as a Query File

**URL:** <https://forum.zotlit.com/t/preserve-library-view-search-when-saving-as-a-query-file/97>\
**Category:** Feature requests\
**Created:** [November 18, 2026, 8:52am UTC](https://forum.zotlit.com/t/preserve-library-view-search-when-saving-as-a-query-file/97 "2026-11-18T08:52:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bepolymathe](https://forum.zotlit.com/user_avatar/forum.zotlit.com/bepolymathe/32/15_2.png) [@bepolymathe](https://forum.zotlit.com/u/bepolymathe)\
**Post date:** [November 18, 2026, 8:52am UTC](https://forum.zotlit.com/t/preserve-library-view-search-when-saving-as-a-query-file/97/1 "2026-11-18T08:52:02Z")

</div>

When saving a Library View as a Query File, include the text entered in the search box along with the selected library and filters.

Opening the saved query should rerun the search against the current library, so the results reflect newly added or changed items rather than a snapshot of the original results.

Currently, the search text is omitted, which can make the saved query show more items than the original view.

### Steps to reproduce

1. Click on the search backup button.
2. Open the created file and find that it is the entire collection

### Expected behavior

Zotlit managed to save the search.

### Actual behavior

Zotlit does not want to save a search via the “Save as query file” command button. I would like to point out that the CLI is well activated in Obsidian.

### Versions and environment

- ZotLit 2.2.4
- Obsidian version: 1.15.1
- Zotero version: 10.0.8 (64-bit)
- Operating system: Linux (Fedora)

### Logs or screenshots (optionals)

 ![image](https://forum-files.zotlit.com/original/1X/b19026cd31492acb7516f15cbbf71ee84c445be4.png)

---

<div class="post-metadata">

**Author:** ![aidenlx](https://forum.zotlit.com/user_avatar/forum.zotlit.com/aidenlx/32/7_2.png) [@aidenlx](https://forum.zotlit.com/u/aidenlx)\
**Post date:** [November 18, 2026, 1:41pm UTC](https://forum.zotlit.com/t/preserve-library-view-search-when-saving-as-a-query-file/97/2 "2026-11-18T13:41:37Z")

</div>

Thanks for reporting this! Currently, “Save as Query” saves the library and supported filters, but not the text entered in the search box, so the saved query can show more items than the original search.

I agree it would be useful to save the search too. I’ll move this to a feature request and look into supporting it.

---

<div class="post-metadata">

**Author:** ![bepolymathe](https://forum.zotlit.com/user_avatar/forum.zotlit.com/bepolymathe/32/15_2.png) [@bepolymathe](https://forum.zotlit.com/u/bepolymathe)\
**Post date:** [November 18, 2026, 1:54pm UTC](https://forum.zotlit.com/t/preserve-library-view-search-when-saving-as-a-query-file/97/3 "2026-11-18T13:54:44Z")

</div>

Okay, thanks for the explanation. Have a good day!
