diff --git a/pd/nw/dialog_search.html b/pd/nw/dialog_search.html
index 1327d2acd4bfd213eb60ab4ae6fd4e754707443c..c8df742e3280e2f3df1abaeae1b2d6147d6383ce 100644
--- a/pd/nw/dialog_search.html
+++ b/pd/nw/dialog_search.html
@@ -275,7 +275,7 @@ function display_directory_callback(err, files) {
                 doc_path = path.join(current_dir, f);
                 doc = index.documentStore.getDoc(doc_path) || {
                     id: doc_path,
-                    title: f,
+                    title: path.basename(f, ".pd"),
                     description: null
                 };
                 display_doc(doc);