#83 ✓resolved
marzapower

Can't open file using 'Find File in Project'

Reported by marzapower | April 20th, 2009 @ 08:53 AM | in 0.2

I am using redcar under Jaunty, updated to the latest release.

When I use the 'Find File in Project' functionality, I can find the files I am looking for, but I can not open them.

Eg.

  1. Open redcar using 'redcar .'
  2. Project -> Find File in Project
  3. Type 'routes'
  4. Select 'routes.rb'
  5. Press enter => nothing
  6. Double click on file => nothing

Comments and changes to this ticket

  • Daniel Lucraft

    Daniel Lucraft April 20th, 2009 @ 09:03 AM

    • Milestone set to 0.2
    • State changed from “new” to “open”

    I think this is that I have only implemented basic keys for the file finder. You can only type, press up/down and press Enter. Clicking doesn't work and if the text entry box loses focus it will not let you open the file until you click back into the text box and press 'enter'.

    I will get on and fix this up. Thanks.

  • marzapower

    marzapower April 20th, 2009 @ 09:12 AM

    I still cannot open files, even giving focus back to the text box and pressing 'enter'. I tried each "intuitive" combination of up/down/click/focus/enter but got no results.

    Thank you!

  • Cedric Sohrauer

    Cedric Sohrauer June 5th, 2009 @ 01:23 PM

    I haven't worked in any open source project so forgive me if I make extra work by just posting here ;)

    The problem here is that key = Gtk::Accelerator.get_label(kv, ks) returns a representation for the user (as stated in the api). My system language is german so it doesnt return "Up" "Down" "Return" but "Hoch" "Runter" "Eingabetaste".

    This works fine for me:

      def entry_key_press(gdk_eventkey)

      kv = gdk_eventkey.keyval
      key = Gdk::Keyval.to_name(kv)
      if key == "Down"
        treeview_select_down
        true
      elsif key == "Up"
        treeview_select_up
        true
      elsif key == "Return"
        treeview_activated
        true
      else
        false
      end
    end</code>
    
    
    
    
  • Cedric Sohrauer

    Cedric Sohrauer June 5th, 2009 @ 02:23 PM

    I actually cloned redcar now and am working on improving the open file dialog so you don't need to paste the code in by hand.

    I am gonna add some functionality and comments.

  • Daniel Lucraft

    Daniel Lucraft June 5th, 2009 @ 04:29 PM

    That's great thanks. I'll pull as soon as it's ready.

  • Daniel Lucraft

    Daniel Lucraft June 30th, 2009 @ 10:31 AM

    • Milestone changed from 0.2 to 0.3
  • Daniel Lucraft

    Daniel Lucraft June 30th, 2009 @ 10:32 AM

    • State changed from “open” to “resolved”
    • Milestone changed from 0.3 to 0.2

    Believe this to be fixed. Please reopen if not.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

A programmer's text editor for Gnome.

People watching this ticket

Pages