[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-kant
Subject:    [Kde-Kate] Bug#36156: Kate: plugin needed: button that starts a compilier and compiles the source co
From:       kreuzritter2000 () gmx ! de
Date:       2001-12-14 17:17:47
[Download RAW message or body]

Package: kate
Version: KDE 2.2.0 
Severity: wishlist
Installed from:    Slackware Packages
Compiler:          Not Specified
OS:                Not Specified
OS/Compiler notes: Not Specified

Hello,

The thing i am missing in kate is a plugin,
that adds a button to the kde menu.

The thing the button should do when it is pressed, is to start a command like a \
compiler with additional options.

For example we have opened a C++ source code file in kate and now we want to compile \
it.

We could use the terminal and type:
$ g++ test.cpp -o test.bin

This would build us a binary file called test.bin.

But it could be more userfriendly, and faster with such a button.
You just press the button and it compiles the source code for you.

The thing the button does is, it looks for the filename that has to be given to gcc.
The filename that get used is the name of the file that is loaded in kate and has an \
active window.

So the button takes test.cpp and passes that 
to the g++ compiler, it also passes the name how the binary file should be called.
Then the compiler does the rest of the job and compiles the file.


The things that are necessary, the command including the additional options that is \
startet by the button should be changeable in the options menu and saveable for later \
use.

Some want to compile C code, other ones want to compile java code.
So you need different compilers, so different command options.
The second necessary thing is, the button needs something like a spaceholder.


For example when you go to options, for setting up the command you enter something \
like:

$ g++ use-file-that-is-active-in-kate -o \
call-that-file-like-the-name-of-the-source-code-with-.bin-at-the-end

In short, such a spaceholder could look something like that (that makes it easier to \
create your own options, eventually has the bash such an option):

$ g++ $x -o $x.bin

Oh and the command option should also pass addional command options like:

$ g++ $x -o $x.bin -WALL -pedantic -O2 etc.

If you don't know what i mean.
Try the windows Programm PFE, (it is called Programmers File Editor) it can do such a \
thing and has such a button.

So with such a button you no more have to type
g++ test.cpp -o test.bin in the terminal, you just press the button and the source \
code gets compiled with the option you set up at the beginning or some days before. \
You can do that once, 20 or 100 times, but you do not need to type 100 times: g++ \
test.cpp -o test.bin into 

the console.

Kate is shipped with a plugin that is similar to that i talked about.
The only different (in my opionion bad) thing is, that this programm needs to create \
a config file for every source code file/programm.

When you have only very small, simple source code programmes, it makes no sense to \
create something like a make and config file that messes up your directory with \
hundreds of pointless config files.

That's the point, why such a button would be nice.

Best Regards
 Oliver C.
 

 





(Submitted via bugs.kde.org)

_______________________________________________
kde-kant mailing list
kde-kant@mail.kde.org
http://mail.kde.org/mailman/listinfo/kde-kant


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic