Browse Source

Find Document is finished and now works on all platforms.

merge-requests/365/head
eidheim 10 years ago
parent
commit
9fe86dadad
  1. 6
      README.md
  2. 12
      src/window.cc

6
README.md

@ -9,10 +9,10 @@ towards libclang with speed and ease of use in mind.
* Platform independent * Platform independent
* Fast and responsive (written in C++) * Fast and responsive (written in C++)
* Syntax highlighting (even C++11/14, and more than 100 other file types) * Syntax highlighting (even C++11/14, and more than 100 other file types)
* (Obj)C(++) warnings and errors on the fly * C++ warnings and errors on the fly
* (Obj)C(++) Fix-its * C++ Fix-its
* Automated CMake processing * Automated CMake processing
* Fast (Obj)C(++) autocomletion (even external libraries) * Fast C++ autocomletion (including external libraries)
* Keyword and buffer autocomletion for other file types * Keyword and buffer autocomletion for other file types
* Tooltips showing type information and doxygen documentation * Tooltips showing type information and doxygen documentation
* Refactoring across files * Refactoring across files

12
src/window.cc

@ -323,8 +323,16 @@ void Window::create_menu() {
if(query==documentation_search->second.queries.end()) if(query==documentation_search->second.queries.end())
query=documentation_search->second.queries.find("@any"); query=documentation_search->second.queries.find("@any");
if(query!=documentation_search->second.queries.end()) if(query!=documentation_search->second.queries.end()) {
Singleton::terminal()->execute("open \""+query->second+token_query+"\""); std::string uri=query->second+token_query;
#ifdef __APPLE__
Singleton::terminal()->execute("open \""+uri+"\"");
#else
GError* error=NULL;
gtk_show_uri(NULL, uri.c_str(), GDK_CURRENT_TIME, &error);
g_clear_error(&error);
#endif
}
} }
} }
} }

Loading…
Cancel
Save