achadwick / zimsearch Goto Github PK
View Code? Open in Web Editor NEWGNOME Shell search provider for Zim Desktop Wiki, inherited from @dsboger.
License: GNU General Public License v2.0
GNOME Shell search provider for Zim Desktop Wiki, inherited from @dsboger.
License: GNU General Public License v2.0
If "search all notebooks, instead of only the default" is disabled in the plugin's settings, then the notebook name in the Gnome Shell overview (marked with an "#") should be hidden. This would make the results easier to read.
To work with zim 0.70_rc3, this plug-in would require python3 compatibility.
dbus looks in XDG_DATA_DIRS for service files (XDG_DATA_DIRS=/usr/local/share/:/usr/share/ typically)
https://dbus.freedesktop.org/doc/dbus-daemon.1.html#:~:text=XDG_DATA_DIRS
if flatpak or snap is installed they'll add their own paths
Can I use it on Xubuntu 17/04-64 (and how) or not ?
Hey,
after
cd ~/<path to extracted zimsearch-master.zip>
chmod +x autogen.sh
sh ./autogen.sh
I'm stuck, because I don't know the proper path to python on my system. Any ideas about the right path on Ubuntu Gnome 15.04?
$ whereis python
python: /usr/bin/python /usr/bin/python3.4 /usr/bin/python2.7 /usr/bin/python3.4m /usr/lib/python3.4 /usr/lib/python2.7 /etc/python /etc/python3.4 /etc/python2.7 /usr/local/lib/python3.4 /usr/local/lib/python2.7 /usr/include/python2.7 /usr/include/python3.4m /usr/share/python /usr/share/man/man1/python.1.gz
er
Do you thought about improving the install process for not so experienced Linux users? I can imagine, that the current approach discourages a lot of people from installing this plugin.
PS: To run autogen.sh properly, the version 1.15 of automake is requiered, but Ubuntu's repositories only provide 1.14. Gladly, it's possible to install the 1.15 version from a .deb file packaged for Ubuntu 15.10.
Hey Davi,
I had a look on the install.sh and found out, that
# plugin file
install -D -m644 gnomeshellsearch.py "${rootdir}/usr/lib/python2.7/site-packages/zim/plugins/gnomeshellsearch.py"
was the cause. After manually copying gnomeshellsearch.py
to /home/sojusnik/.local/share/zim/plugins/gnomeshellsearch.py
your plugin finally worked!
Would it be possible to adapt your install script in a further release, so that it will run OOTB with Ubuntu Gnome?
When using your plugin, I've realized that it takes some time for the results to show up in the Gnome Shell Overview. Do you thought about speeding this process up? ATM, it takes about 6 to 7 seconds to show up, whereas search results from nautilus and other plugins appear nearly instantly.
One way to speed this process up is to use Strg+J (go to page) instead of Strg+Shift+F (search all notes) in your plugin. I think that the delay is caused by the search process, the Strg+J results however should appear nearly instantly, because the Zim pages are already indexed, so that there shouldn't be any search delay. Additionally, the Strg+Shift+F is a little bit over the top for the Gnome Shell Overview, since you want to open a certain Zim page and not perform a search through the whole notebook.
What do you think?
Best wishes!
I just found out about this plugin as I switched to Gnome from Xfce a week ago.
If I can make it work, this would be one of the greatest addition to my setup so far; so I really hope you can help!
I tried installing with the two ways you described (with and without "--system" in the command), and of course, I did try logging in and out, even restarting.
In both cases,
Unfortunately, when I click on "Activities" the search does not show any results from Zim pages.
There is one thing I am not sure of, after popping the "Activities" overview panel should I press the "Meta" key, and then my search string, or, do you refer to this "meta" key as the keyboard shortcut to switch to the overview panel?
I anyway tried disabling the keyboard shortcut so that the "meta" key does not toggle the overview panel off to see if some Zim search would show up with no success.
For information, I am on Debian 9 stable, Gnome 3.22 and Zim 0.65 installed through apt.
So I am wondering if I am missing something here, but I do not know how to debug or investigate further, I would really appreciate any help.
Thank you for your time.
It would be very helpful for new users (and the popularity of this plugin) to find your great plugin in the official plugins list of Zim on GitHub.
It seems, that Zimsearch is currently not compatible with the 0.67-rc2 version of Zim, that was released recently.
I've followed your instructions, the installation process went well, but don't received any results in the Gnome-Shell. Of course I've enabled both the Gnome-Shell search plugin and the Zim one. Restarted, but without any effect. Happens with Ubuntu Gnome 17.04.
All files seem to be on their place:
$ find /usr -iname '*zim*search*' -ls
5773136 4 -rwxr-xr-x 1 root root 444 Jun 15 19:38 /usr/local/bin/zim-gnomeshellsearch
5799999 4 drwxr-sr-x 2 root staff 4096 Jun 15 19:38 /usr/local/lib/python2.7/dist-packages/zimsearch-0.0.1.egg-info
5773131 4 -rw-r--r-- 1 root root 180 Jun 15 19:38 /usr/local/share/gnome-shell/search-providers/zim.plugins.gnomeshellsearch.provider.ini
5773130 4 -rw-r--r-- 1 root root 114 Jun 15 19:38 /usr/local/share/dbus-1/services/zim.plugins.gnomeshellsearch.provider.service
5799972 4 drwxr-xr-x 5 root root 4096 Jun 15 19:38 /usr/local/src/zimsearch
5773124 4 -rw-r--r-- 1 root root 121 Jun 15 19:38 /usr/local/src/zimsearch/data/zim.plugins.gnomeshellsearch.provider.service.in
5773123 4 -rw-r--r-- 1 root root 180 Jun 15 19:38 /usr/local/src/zimsearch/data/zim.plugins.gnomeshellsearch.provider.ini.in
5773128 4 -rwxr-xr-x 1 root root 449 Jun 15 19:38 /usr/local/src/zimsearch/zim-gnomeshellsearch
This plug-in used to work perfectly in previous versions of Gnome.
Could you please be so kind and fix it?
Thanks in advance!
Although I have a quite fast PC, the new approach feels very sluggish to me. It takes about 5 seconds for the results to appear. At the beginning I even thought, that this plugin doesn't work at all, because the previous versions showed the results instantly. Only by accident I saw the new results, when the Gnome-Shell stayed open a little longer than usual. IMHO, the current approach is too slow to have a practical value.
Searching only through titles and not the note's content, would certainly speed things up.
@dsboger
Thanks for transferring ownership of this repository to me. It seems to be working correctly now, and I've inherited all the old issue reports too. I'm happy to look after your code for you, since I'm a regular user of this awesome plugin ๐
You still have commit access, and I intend to keep that open.
Just some legal/attribution questions for form's sake...
How do you want to continue to be attributed? Should I keep your email masked in AUTHORS and related documentation? I consider you the original author, want to keep you listed.
How do you want to be attributed in code? I intend to add myself there for new commits, and assign date ranges for the โธ lines based on the commit log. Hope that's OK.
Is it your intent that the license is "GPLv2", or "GPLv2 or any later version"?
I really think, that it's absolutely sufficient to search only for the page title, not the content itself, like it was before. People (will) use this plugin primarily as a launcher, and not as a search tool, because Zim's search is already intuitive, fast and even shows a ranking for quick orientation.
In that case you would significantly speed up the searching process. In case of need, I also can imagine separating the results for the page titles and the content. This could be configured in zim > options > plugins > zimsearch.
So the results of the page titles would appear nearly instantly in the first section in Gnome's activities overview, and after some seconds, underneath, another section with the content results would appear. By this we would have the best of both worlds: instant title results with additional in-depth content results.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.