mdrasmus / keepnote

Note-taking and organization app
http://keepnote.org
Other
176 stars 87 forks source link

Filesystem browsing when opening notebook #734

Open LFBernardo opened 7 years ago

LFBernardo commented 7 years ago

Running Keepnote 0.78 on Kali 2017.1. When you create or restore a notebook the file system can be browsed to the required location. But when opening different notebooks the file system isn't browse-able.

Logs are not indicating any errors or failures.

As I keep separate notebooks for all my clients this is quite painful

The workaround I currently use is going through the filesystem and opening up the nbk files.

keepnote

denevin commented 7 years ago

I was able to create a temporary workaround for this problem by editing the following file:

/usr/share/pyshared/keepnote/gui/main_window.py

I changed the order of the code on lines 547-555.

From:

    file_filter = gtk.FileFilter()
    file_filter.add_pattern("*.nbk")
    file_filter.set_name(_("Notebook (*.nbk)"))
    dialog.add_filter(file_filter)

    file_filter = gtk.FileFilter()
    file_filter.add_pattern("*")
    file_filter.set_name(_("All files (*.*)"))
    dialog.add_filter(file_filter)

To:

    file_filter = gtk.FileFilter()
    file_filter.add_pattern("*")
    file_filter.set_name(_("All files (*.*)"))
    dialog.add_filter(file_filter)

    file_filter = gtk.FileFilter()
    file_filter.add_pattern("*.nbk")
    file_filter.set_name(_("Notebook (*.nbk)"))
    dialog.add_filter(file_filter)
LFBernardo commented 7 years ago

I will give it a go and see if it works for me as soon as I have spare time.

jdvalentini commented 6 years ago

To me, the workaround posted by @denevin worked well. Thanks

rcuares commented 5 years ago

The workaround posted by @denevin solved my issue.

NinjaMinjax commented 4 years ago

@denevin solution still works.