Posts: 18 | Thanked: 1 time | Joined on Dec 2007 @ deutschland
#31
After that I tried to create a new file, but couldn't put it in filesystem (/usr/share/mis/...), as there are only the "open" directories to be seen.
 
Posts: 334 | Thanked: 55 times | Joined on Aug 2007 @ Eastern Ontario, Canada
#32
Is there a way to edit hidden files in pygtkeditor?

I am trying to edit /home/user/.mozilla/microb/prefs.js but cannot get pygtkeditor to see the .mozilla directory.

TIA.
 
pipeline's Avatar
Posts: 693 | Thanked: 502 times | Joined on Jul 2007
#33
Khertan, can you add something like this to the end of the __init__ function (line 433 for me) :

Code:
 
argcount=0
 
for arg in sys.argv: 
    argcount = argcount + 1 
    if (argcount > 1):
        self.open_file(arg)
(Edit : thanks cripes)

That would allow me to launch pygtkeditor with filename on command line and open it automatically.

Last edited by pipeline; 2008-01-06 at 23:40.
 

The Following User Says Thank You to pipeline For This Useful Post:
Posts: 111 | Thanked: 31 times | Joined on Nov 2007
#34
use the code tags

Code:
for arg in sys.argv:
    argcount = argcount + 1
    if (argcount > 1):
           self.open_file(arg)
 

The Following User Says Thank You to cripes For This Useful Post:
Khertan's Avatar
Posts: 1,012 | Thanked: 817 times | Joined on Jul 2007 @ France
#35
Thx for your patch,

I ll add this to the next release, as open from filemanager too.

ps : to report bug or new idea you can report it on my bug tracker. I'm noticed by email each time something is report ... (as i don't read itt every day).

Thanks
 

The Following User Says Thank You to Khertan For This Useful Post:
pipeline's Avatar
Posts: 693 | Thanked: 502 times | Joined on Jul 2007
#36
Not sure when it was added but open from command line works good now... thanks

Can you add or fix the preferences so that the default language setting is remembered?

If i change the default language setting in preferences it won't remember it.
 
Khertan's Avatar
Posts: 1,012 | Thanked: 817 times | Joined on Jul 2007 @ France
#37
If i change the default language setting in preferences it won't remember it.
I know, it s the last thing i try to fix for the next release ... but gtk combobox make me crazy !!! Stupid implementation !
 
pipeline's Avatar
Posts: 693 | Thanked: 502 times | Joined on Jul 2007
#38
Heh yea well if its any easier maybe you can just add code to auto switch based on extension (when they open a file) like :

when open file if filename.endswith()
.cs -> setlanguage c-sharp
.c -> setlanguage c
.cpp -> setlanguage cpp
.java -> setlanguage java
.sh -> setlanguage sh
.html -> setlanguage html
 
Khertan's Avatar
Posts: 1,012 | Thanked: 817 times | Joined on Jul 2007 @ France
#39
It s the case (maybe in 2.2.0) ... but ... if extension is not know ... it use the default language.
 
cmdowns's Avatar
Posts: 100 | Thanked: 13 times | Joined on Mar 2008
#40
Hello, can someone please tell me which apps are required in order to install the PyGTKEditor? From perusing the thread, it seems like I need:

python-pygtksourceview-2.0.0.armel.deb
libgtksourceview2.0-common-2.0.1.armel.deb
libgtksourceview2.0-0-2.0.0.armel.deb

I found and dl'ed them from Khertan's site, but I can't get any of them to install. So I guess I'm missing something else. Chances are it's something really basic that I should know about, but am too much of a noob to figure out.

Any help would be appreciated.
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 19:43.