Category Archives: Python

Project Plugin

As said before, the project plugin is going to get a graphical and functional overhaul.

Рgraphical: there opens a new tab with as title your project name (duh!) and in this tab you have to the left a list with all files attached to the project  and to the right a new notebook with the opened files for the project

-functional: as the projects are opened in a new tab this means that you can work at a project and at regular files at the same time and you can even work at multiple projects at the same time ūüėČ ¬†Also you don’t have to keep all your files open in your project to keep them related to the project. ¬†the menu to the left shows all related files to the project, double-clicking opens them, ¬†but you can also remove them entirely from the project or add new files on the fly.

Why the change? ¬†Because the old system was terrible ūüėÄ

P.S: The Network Plugin probably is going to undergo the same overhaul

P.P.S: Midnight hacking is always fun ūüėź Project Plugin is one big complex script ¬†(not a mess as I know exact what’s going on, but for someone else it would probably be a nightmare (meh)

 

Here is an image:

What  should you notice?

– you can still work at multiple files and in multiple panes at the same time
Рyou can open/close files within a project while keeping them related to the project  (notice that only views.py is open while sftp.py is also in the project list)
Рsome shiny buttons in the menu ;D  (add file ; export project ; remove file)

Advertisements

Deditor 0.3.1

Hey,

There was –again– a long time no update to deditor, this was caused by a bug in the ubuntu overlay-scrollbars which showed ugly grey bars over any editor using scite. ¬†The most popular editors were added to a blacklist and got regular scrollbars to fix the issue. ¬†But for deditor there also is a solution coming! ¬†In ubuntu Oneriric the overlay scrollbars are fixed and deditor should work fine! ¬†If you want to stick with natty there are certain workarounds which I’m not going to implement in the main code.

I will start development on deditor 0.3.1 as soon as oneiric is available.
I haven’t had the time to think about what shall be updated yet ¬†but the projects plugin will definitely¬†get a revamp as it is not good enough in my opinion.


Deditor 0.3

Hey, long time ago deditor has been updated. I’ve started a new development cycle 0.3 which is not compatible with 0.2 because I rewrote com (the communication/plugin module I wrote) and also rewrote some important parts of deditor. Deditor without plugins runs smooth and I’m now porting all plugins I wrote to 0.3. I don’t think somebody else wrote plugins for deditor but if it’s the case contact me and I will help you out.

There is one large visual change and that’s the change of the function of the topbar which was called the filepath in the past. it does NOT show the path of the file you are editing anymore, it is now a proper commandbar. Location and Implementation probably are going to change in the following weeks.

There is nothing new yet, but here’s the list with changes:
– configuration changed within com
– initiating com changed and now allows passing com without cycle-imports etc
– global methods/variables almost all gone
– the sheets mechanism is replaced with the tab mechanism which uses proper classes to communicate and which allows non-file-tabs to be added easy without cluttering the system.

I also finally understand how to propper pack a .deb without hacks for python apps ans am now able to use a ppa ūüėÄ The deditor ppa will be used to provide easy install and updates.

P.S. I’ve an idea about an advanced


Announcing Deditor 0.2.5

Deditor 0.2.5 will be the next big release, it will take some time before it is finished and there will be added a lot after this post,  this is just an overview of what already has been accomplished

Changes

– You will be notified when you close a file that has unsaved changes
– Macro plugin gone and replaced by new Emacs Plugin (see below)
– choice between multiple designs (see below)
– commandbar now has an autocomplete system to quickly enter commands
Рadded save-as support  (from the menu and also when you save a non-existing file)
– Visual sign that file has unsaved changes
– FindBar moved to bottom between notebook and shell
Рwhen saving a python file,  pyflakes will be ran in the background on the file and every line in your code that has an error will be marked in the sideline
– Added 10 commands (see below)
– Improved search system (see below)
– Made searchbar better by replacing textbuttons with icons

Bugfixes

-customize font/size save now works
-fixed IndexError when closing the only file
-autoindentation for all files by default  (previously it was python-only O_o)
-ctrl+f now also hides findbar if already open
-removed unused imports
-saving to unexisting dir, will create the dir first
-removed not-used variables and print statements
-opening a non-existing file results in creating the file and open it

 

Emacs Plugin

Once activated this plugin overrides every assigned keybinding with the typical emacs keybindings,  both commandline as keybinding are supported.

Designs

You now have the option to choose between two design themes: minimal or extended. ¬†minimal is the way you’re used to work, ¬†extended currently only adds some buttons next to the commandbar to quickly open/save files. ¬† More changes and design options might come.

Commands  (from deditor, not from plugins)

quit: close deditor
open:  show the open dialog
open /home/…/file.py: ¬† open the file on the path specified
close: close the current tab
close 3: close tab number 3  Warning: tab numbers internally are different as the way they are ordered in the gui
new:  create a new file
new /home/…/file.py: ¬†create the file at the specified path and open it
config:   show the configuration panel
config show:  show the configuration panel
config hide:  hide the configuration panel
shell: show the python shell
shell show: show the python shell
shell hide:  hide the python shell
version:  shows a dialog with the version of deditor
update:   tries to update deditor if possible
find:  show/hide the findbar
find this: ¬†show the findbar and look for “this”
syntax python: ¬†changes the syntax of the current file to “python”
size 500×600: sizes deditor to 500 width and 600 height, ¬†this is saved to the configuration and will be used on startup

Search

Now backwards search actually works :p,  you can also specify which kind of search you want:  normal,  matchcase, startword, wholeword or regex!   The searchbar also moved down to sit between the notebook and the shell,  this is much nicer (thanks to Manuel) also the searchbar got a new look,  no more textbuttons,  but a large searchfield and 3 icons,  an up arrow, down arrow and close icon

 

Also all the 0.2.4.x bugfix releases are included, these covered also some very important new additions being the most important

– CodeCompletion working much better and always showing the dot
– Update system should work
-AttributeError: ‘KeyEvent’ has no ‘Veto’ attribute fixed!
-Made CodeCompletion only work on python_file() == True
-Fixed projectslist empty after closing project
-Fixed CSDialog, call CSDialog.GetValue() (or GetReturnCode()) to alternate between True/False


An introduction to Deditor

Like the name already suggests Deditor is an editor. ¬†It’s not a normal editor, no it is an editor focused on one language in particular.

You might expect the D programming language, but if that’s the case I will have to disappoint you. ¬†It is based on the awesome language of python.

So basicly it is an editor with some python stuff around it to make it an easier to use system.

The editor

The editor has the same features a normal editor has, handling multiple files at once, syntax-highlighting, text-lookup, saving (duh!), …

The pythonic

What is so pythonic about this editor then? well there are: -python interactive interpreter, code running, code analyzing, code inspecting, … (lots of stuff has to be added) ¬†and something new is the code completion system

Plug and Play Code

In the new version (0.2.3) (Note: not released yet) plugins are supported these will give you the opportunity to install or even write custom code to improve deditor even more! ¬†A There are already some Plugins When you Download Deditor, for example the projects system, the python features, code-completion,… so if you for example just want to use deditor but without the python features you can simply disable/delete that plugin and everything will still work fine! ūüôā

Veni Vidi Version

The futur release 0.2.3 will be incredibly better as the current 0.2.2, this because there are 2 major improvements,
the Plugin system and the code-completion system.  Less but still great improvements will be a better projects system and inspect system and different translations.

iTube

This is the editor in action:¬†http://www.youtube.com/watch?v=zidKSPWBGxU (don’t mind the bad sound quality/pronouncation)

Conclusion

DOWNLOAD! ūüėÄ http://launchpad.net/deditor