# Multiple document view!

**URL:** <https://discourse.devontechnologies.com/t/multiple-document-view/47438>\
**Category:** DEVONthink\
**Tags:** feature-request\
**Created:** [May 18, 2019, 3:38am UTC](https://discourse.devontechnologies.com/t/multiple-document-view/47438 "2019-05-18T03:38:19Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![ham1](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/h/c89c15/32.png) [@ham1](https://discourse.devontechnologies.com/u/ham1)\
**Post date:** [May 18, 2019, 3:38am UTC](https://discourse.devontechnologies.com/t/multiple-document-view/47438/1 "2019-05-18T03:38:20Z")

</div>

Is it possible to add view style like this attachment?  
(When I select multiple files)…🤭

 ![multiple](https://devontech-discourse.s3.dualstack.us-east-1.amazonaws.com/uploads/original/2X/4/4a274f1dd4bb0e6cd135eb61576b27186d32f448.jpeg)

---

<div class="post-metadata">

**Author:** ![BLUEFROG](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/bluefrog/32/135_2.png) [@BLUEFROG](https://discourse.devontechnologies.com/u/BLUEFROG)\
**Post date:** [May 18, 2019, 1:16pm UTC](https://discourse.devontechnologies.com/t/multiple-document-view/47438/2 "2019-05-18T13:16:35Z")

</div>

_Possible?_ Many things are possible. 🙂  
How easy it is to implement, and whether there is a large enough need for the feature are a different matter.

The request is noted though.

---

<div class="post-metadata">

**Author:** ![anderswt](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/a/f0a364/32.png) [@anderswt](https://discourse.devontechnologies.com/u/anderswt)\
**Post date:** [January 25, 2020, 10:24am UTC](https://discourse.devontechnologies.com/t/multiple-document-view/47438/3 "2020-01-25T10:24:08Z")

</div>

Not sure about how to vote on this feature, but I have a need.  
Its a highly usable feature if you write longer documents with sections/subsection in multiple files.

---

<div class="post-metadata">

**Author:** ![BLUEFROG](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/bluefrog/32/135_2.png) [@BLUEFROG](https://discourse.devontechnologies.com/u/BLUEFROG)\
**Post date:** [January 25, 2020, 3:24pm UTC](https://discourse.devontechnologies.com/t/multiple-document-view/47438/4 "2020-01-25T15:24:04Z")

</div>

Welcome @anderswt

There isn’t an official voting mechanism, but we frequent these forums and read the posts, so your _vote_ is noted.

---

<div class="post-metadata">

**Author:** ![anderswt](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/a/f0a364/32.png) [@anderswt](https://discourse.devontechnologies.com/u/anderswt)\
**Post date:** [May 20, 2023, 1:03pm UTC](https://discourse.devontechnologies.com/t/multiple-document-view/47438/5 "2023-05-20T13:03:52Z")

</div>

> [@anderswt](#):
>
> Its a highly usable feature if you write longer documents with sections/subsection in multiple files.

Anything happened with this feature request?

---

<div class="post-metadata">

**Author:** ![BLUEFROG](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/bluefrog/32/135_2.png) [@BLUEFROG](https://discourse.devontechnologies.com/u/BLUEFROG)\
**Post date:** [May 20, 2023, 2:10pm UTC](https://discourse.devontechnologies.com/t/multiple-document-view/47438/6 "2023-05-20T14:10:49Z")

</div>

No. And as you can see, there has been no further interest shown.

---

<div class="post-metadata">

**Author:** ![AW2307](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/a/8c91f0/32.png) [@AW2307](https://discourse.devontechnologies.com/u/AW2307)\
**Post date:** [May 20, 2023, 2:28pm UTC](https://discourse.devontechnologies.com/t/multiple-document-view/47438/7 "2023-05-20T14:28:49Z")

</div>

Well, count my vote in please… 🙂

This reminds me of a similar functionality in Ulysses and would be a useful addition for anyone using DT with “atomic notes”.

I.e. individual concepts per note, where viewing them in sequence makes sense in certain cases but creating a merged document would be overkill.

---

<div class="post-metadata">

**Author:** ![Amontillado](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/a/e47c2d/32.png) [@Amontillado](https://discourse.devontechnologies.com/u/Amontillado)\
**Post date:** [May 20, 2023, 3:35pm UTC](https://discourse.devontechnologies.com/t/multiple-document-view/47438/8 "2023-05-20T15:35:46Z")

</div>

You can already do similar things.

Command-click to highlight multiple documents. Right click one of them and use the merge documents feature. That will create a new document, leaving the originals unchanged, with the selected documents concatenated.

That’s a snapshot.

For a real-time merged document, if you use Markdown, create a “merged” document with transclusion:

{{document 1}}

{{document 2}}

Or, set a group’s script to Markdown transclusion.scpt, which I think can be found in Devonthink’s forums. Each time you click on the group, it will create a merged view of all the documents in the group. You can still expand/collapse the group without triggering the script, which is how you can get to the created document.

Fun fact which might cause Bluefrog a facepalm - you can set this script on a tag. The created transclusion will appear as a member of the tag, and will physically be in the database’s local inbox.

Since clicking on the group now triggers the script, you remove the script by right-clicking the group, select get info, and remove the script in in info panel. That feature is found by clicking “script” in the info panel.

Just a few thoughts.

Hmmm… Can’t find that script… Here’s what I have. Usual disclaimers, this works for me, your mileage may vary, it could blow out your refrigerator light, etc.

Trust your backups more than any script.

```auto
property selectTransclusionRecord : true -- if false Transclusion record opens in a new window

on triggered(theGroup)
	tell application id "DNtp"
		try
			set theResults to search "kind:markdown comment:\"Transcluded group contents\"" in theGroup
			if theResults ≠ {} then
				set theTransclusionRecord to item 1 of theResults
			else
				set theTransclusionRecord to create record with {name:"_Transclusion - " & (name of theGroup), type:markdown, source:"", comment:"Transcluded group contents"} in theGroup
			end if
			
			set theChildren_ReferenceURLs to reference URL of children of theGroup whose type = markdown and comment is not "Transcluded group contents"
			if theChildren_ReferenceURLs = {} then error "This group doesn't contain Markdown records"
			set theTransclusionRecord_Source to "{{" & my tid(theChildren_ReferenceURLs, "}}" & linefeed & "{{") & "}}"
			set plain text of theTransclusionRecord to theTransclusionRecord_Source
			
			if selectTransclusionRecord then
				set selection of think window 1 to {theTransclusionRecord}
			else
				open window for record theTransclusionRecord
				activate
			end if
			
		on error error_message number error_number
			if the error_number is not -128 then display alert "DEVONthink" message error_message as warning
			return
		end try
	end tell
end triggered

on tid(theInput, theDelimiter)
	set d to AppleScript's text item delimiters
	set AppleScript's text item delimiters to theDelimiter
	if class of theInput = text then
		set theOutput to text items of theInput
	else if class of theInput = list then
		set theOutput to theInput as text
	end if
	set AppleScript's text item delimiters to d
	return theOutput
end tid

```

---

<div class="post-metadata">

**Author:** ![AW2307](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/a/8c91f0/32.png) [@AW2307](https://discourse.devontechnologies.com/u/AW2307)\
**Post date:** [May 20, 2023, 4:01pm UTC](https://discourse.devontechnologies.com/t/multiple-document-view/47438/9 "2023-05-20T16:01:33Z")

</div>

Hi @Amontillado,

Thanks for expanding on this, I think your suggested solutions will be beneficial to quite a few readers here.

I’m aware of the merging and transclusion option, and even of the script you posted. There is also a version of this script, which @pete31 was kind enough to adapt for my needs, such that the transclusions are created automatically via a smart rule.

But what if a user just wants to preview several (markdown) notes in context and doesn’t want to create a new document, which then needs to be either “managed” or deleted lateron?

As a suggestion, selecting multiple markdown documents could show a view such as the one described by the OP, instead of the current preview (“x items selected”). It would fulfill the same function as Quick Look on MacOS, so the purpose would purely be to increase usability in certain scenarios. The functionality itself is already available in DT if one is willing to create a new document.

---

<div class="post-metadata">

**Author:** ![Amontillado](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/a/e47c2d/32.png) [@Amontillado](https://discourse.devontechnologies.com/u/Amontillado)\
**Post date:** [May 20, 2023, 4:22pm UTC](https://discourse.devontechnologies.com/t/multiple-document-view/47438/10 "2023-05-20T16:22:52Z")

</div>

I completely agree. A smart rule can take care of the transcluded output from the script (and kudos to @pete31), but it would be ideal for multiple selected documents to appear as one in the edit pane, with live editing.

It would also be cool to have a Keynote-like feature. Not necessarily for creating presentations, but for putting instances of notes on a whiteboard. A concept map/mind map view.

---

<div class="post-metadata">

**Author:** ![AW2307](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/a/8c91f0/32.png) [@AW2307](https://discourse.devontechnologies.com/u/AW2307)\
**Post date:** [May 20, 2023, 4:31pm UTC](https://discourse.devontechnologies.com/t/multiple-document-view/47438/11 "2023-05-20T16:31:46Z")

</div>

> [@Amontillado](#):
>
> it would be ideal for multiple selected documents to appear as one in the edit pane, with live editing.

Nice touch with the live editing, hadn’t thought of that but definitely +1 if that’s feasible.

---

<div class="post-metadata">

**Author:** ![ranger\_dan](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/r/b487fb/32.png) [@ranger\_dan](https://discourse.devontechnologies.com/u/ranger_dan)\
**Post date:** [July 17, 2023, 3:31pm UTC](https://discourse.devontechnologies.com/t/multiple-document-view/47438/12 "2023-07-17T15:31:30Z")

</div>

Hi Bluefrog,

a pity that you don’t yet have an voting mechanism…

Please cont me in as well. Would be such a productivity gain.

A workaround could be making the panes “floatable”, so that one can arrange it on different displays. But that needs to be implemented by DEVONthink…

---

<div class="post-metadata">

**Author:** ![BLUEFROG](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/bluefrog/32/135_2.png) [@BLUEFROG](https://discourse.devontechnologies.com/u/BLUEFROG)\
**Post date:** [July 17, 2023, 3:51pm UTC](https://discourse.devontechnologies.com/t/multiple-document-view/47438/13 "2023-07-17T15:51:22Z")

</div>

Welcome @ranger_dan

The _vote_ is noted.

> A workaround could be making the panes “floatable”

What _panes_?

---

<div class="post-metadata">

**Author:** ![ranger\_dan](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/r/b487fb/32.png) [@ranger\_dan](https://discourse.devontechnologies.com/u/ranger_dan)\
**Post date:** [July 17, 2023, 5:38pm UTC](https://discourse.devontechnologies.com/t/multiple-document-view/47438/14 "2023-07-17T17:38:58Z")

</div>

> [@BLUEFROG](#):
>
> What _panes_?

The preview panes, which do have a handle to control the size, but afik only within the _one_ window on _one_ screen. Is my post better understandable now?

---

<div class="post-metadata">

**Author:** ![BLUEFROG](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/bluefrog/32/135_2.png) [@BLUEFROG](https://discourse.devontechnologies.com/u/BLUEFROG)\
**Post date:** [July 17, 2023, 6:18pm UTC](https://discourse.devontechnologies.com/t/multiple-document-view/47438/15 "2023-07-17T18:18:05Z")

</div>

You can open documents in independent document windows. While they don’t float, doesn’t that alleviate the _panes_ request?

---

<div class="post-metadata">

**Author:** ![JMTee](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/jmtee/32/98_2.png) [@JMTee](https://discourse.devontechnologies.com/u/JMTee)\
**Post date:** [July 18, 2023, 6:11am UTC](https://discourse.devontechnologies.com/t/multiple-document-view/47438/16 "2023-07-18T06:11:33Z")

</div>

One more ’vote’ for this feature. I use transclusion to achieve kind of a similar effect, but it’s a bit of a hassle.

---

<div class="post-metadata">

**Author:** ![ranger\_dan](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/r/b487fb/32.png) [@ranger\_dan](https://discourse.devontechnologies.com/u/ranger_dan)\
**Post date:** [July 19, 2023, 3:46pm UTC](https://discourse.devontechnologies.com/t/multiple-document-view/47438/17 "2023-07-19T15:46:51Z")

</div>

> [@BLUEFROG](#):
>
> You can open documents in independent document windows. While they don’t float, doesn’t that alleviate the _panes_ request?

This of course works for static documents, but searching for a specific document (up/down-keys) does not work here, only if the preview pane were movable to a different screen. This hopefully backs up my vote for the multi screen support…

---

<div class="post-metadata">

**Author:** ![BLUEFROG](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/bluefrog/32/135_2.png) [@BLUEFROG](https://discourse.devontechnologies.com/u/BLUEFROG)\
**Post date:** [July 19, 2023, 3:49pm UTC](https://discourse.devontechnologies.com/t/multiple-document-view/47438/18 "2023-07-19T15:49:40Z")

</div>

> [@ranger\_dan](#):
>
> but searching for a specific document (up/down-keys) does not work here, only if the preview pane were movable to a different screen.

I still don’t see the purpose. If you’re searching for a document, the view/edit pane displays the current document selected in the item list as the selection changes.

---

<div class="post-metadata">

**Author:** ![ranger\_dan](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/r/b487fb/32.png) [@ranger\_dan](https://discourse.devontechnologies.com/u/ranger_dan)\
**Post date:** [July 19, 2023, 4:36pm UTC](https://discourse.devontechnologies.com/t/multiple-document-view/47438/19 "2023-07-19T16:36:00Z")

</div>

> [@BLUEFROG](#):
>
> the view/edit pane displays the current document selected in the item list as the selection changes

This is true, thank you. The preview window is displaying the selected document… Almost the solution I was looking for.

---

<div class="post-metadata">

**Author:** ![BLUEFROG](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/bluefrog/32/135_2.png) [@BLUEFROG](https://discourse.devontechnologies.com/u/BLUEFROG)\
**Post date:** [July 19, 2023, 6:01pm UTC](https://discourse.devontechnologies.com/t/multiple-document-view/47438/20 "2023-07-19T18:01:06Z")

</div>

You’re most welcome 🙂

[Next page](https://discourse.devontechnologies.com/t/multiple-document-view/47438.md?page=2)
