Emerald Editor Discussion
August 18, 2017, 01:59:00 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Command Line Parameters  (Read 9508 times)
0 Members and 1 Guest are viewing this topic.
Zhrakkan
Official Mascot!
Beta Testers
Gem Cutter
***
Posts: 177



WWW
« on: May 11, 2006, 09:54:04 pm »

I am not sure how much everyone else used the Command Line parameters for CE, because it seems most of them seemed pretty useless to me at the moment, but command line parameters could be very useful if implemented.

Things like:

Copy text from one file to another...
delete line 7
Copy line 8 to line 9

(which makes it nice, we can use EE to edit files automatically)

Things like this...
Just added ideas.
Logged

News Manager and Unofficial Mascot
Join the Emerald Editor Project - Message Me!
Emerald Editor - "A Jewel of an Editor"
-----by the way, that name is pronounced "Za-Rack-In"
Arantor
Site Administrator
Administrator
Master Jeweller
*****
Posts: 618



« Reply #1 on: May 11, 2006, 11:17:44 pm »

Well, one of the underlying points for debate was a command system, and there is no reason we can't pass instructions (or a script) to EE via command line.
Logged

"Cleverly disguised as a responsible adult!"
Wraithan
Prospector
*
Posts: 9


« Reply #2 on: May 24, 2006, 02:19:20 am »

The ability to use EE in scripting via commandline parameters would be nice, especially featurs like tail on linux. A few of my games I play can get up to 300+ meg log files if I forget to delete them weekly, and somtimes I want the last 10000 lines off it without killing the whole file. I don't think a full scripting engine would need to be built, just the ability to use it via a commandline so a scripting language could use it.
Logged
daemon
Developers
Gem Cutter
***
Posts: 107


WWW
« Reply #3 on: May 24, 2006, 02:38:33 am »

Just looking at the code, it appears that wxStEditApp::onInit() already has a CLI.
Logged
daemon
Developers
Gem Cutter
***
Posts: 107


WWW
« Reply #4 on: May 29, 2006, 02:40:30 am »

*bumping*

Could we see if we need/want the CLI? If not, I'll go ahead and rip it out of the core.
Logged
Arantor
Site Administrator
Administrator
Master Jeweller
*****
Posts: 618



« Reply #5 on: May 29, 2006, 10:43:16 am »

Well, I know some people have suggested the need for the CLI, and IMO we do need a minimal CLI if nothing else.

The logic is in Windows, some people have associated certain file types (e.g. PHP on my Windows system) with CE so that they can open it easily. Others have associated .txt files with it and effectively replaced Notepad.

More importantly, though, many people add an extension to the right-click menu in Explorer (or whatever file manager) to "Open this file in Crimson Editor" - there is a configuration option in CE's tools menu to do this.

Therefore a minimal CLI is required, but only so far as accepting a list of one or more filenames in order to load them.

That said, I don't know if we would want to leave in a full CLI for future use, perhaps?
Logged

"Cleverly disguised as a responsible adult!"
Zhrakkan
Official Mascot!
Beta Testers
Gem Cutter
***
Posts: 177



WWW
« Reply #6 on: May 30, 2006, 02:31:21 pm »

I think the CLI is needed...That is me..

If we ended up having that as something for the future I say leave it in.
Logged

News Manager and Unofficial Mascot
Join the Emerald Editor Project - Message Me!
Emerald Editor - "A Jewel of an Editor"
-----by the way, that name is pronounced "Za-Rack-In"
Emerald Fox
Global Moderator
Miner
*****
Posts: 23



« Reply #7 on: May 30, 2006, 03:54:35 pm »

Me too, I think that a minimal CLI is needed and leave it in for a future version.
Logged

No signature currently stored in profile.
awmyhr
Senior Miner
***
Posts: 95

Maintainer of Obscure and Unused Ports


WWW
« Reply #8 on: May 30, 2006, 08:22:08 pm »

I vote to include CLI as well. 

Further, it would be nice to have hooks to enable platform-native interaction with system tools (I'm currently thining AppleScriptability)...
Logged

-->>  This Space 4 Rent  <<--
daemon
Developers
Gem Cutter
***
Posts: 107


WWW
« Reply #9 on: May 30, 2006, 11:37:06 pm »

Sounds like a plan. I'll see about extracting it to its own class, though.
Logged
daemon
Developers
Gem Cutter
***
Posts: 107


WWW
« Reply #10 on: June 01, 2006, 03:32:43 am »

Also, inside EE there's some weird (apparently vestigial) command prompt-style thing under Help->Emerald Editor Shell. It doesn't do a whole lot (it only echos out what you type...). Is this safe to remove? I think so, but just wondering.

If you want to see the code, it's in emerald.cpp under wxStEditAp::OnSTEShellEvent().
« Last Edit: June 01, 2006, 07:11:08 am by daemon » Logged
awmyhr
Senior Miner
***
Posts: 95

Maintainer of Obscure and Unused Ports


WWW
« Reply #11 on: June 01, 2006, 12:19:52 pm »

At this point I would say remove shell escapes, at least in the core code.  I consider them security hazards under UNIX.  This is something which would be better as a plug-in.
Logged

-->>  This Space 4 Rent  <<--
Arantor
Site Administrator
Administrator
Master Jeweller
*****
Posts: 618



« Reply #12 on: June 01, 2006, 05:40:36 pm »

Having a shell feature would be useful but I agree that it is more of a plugin-style feature than a critical one.

I also think - if nothing else - dealing with rudimentary escapes etc. would be a good idea even if we don't use the full potential of a CLI right now.
Logged

"Cleverly disguised as a responsible adult!"
daemon
Developers
Gem Cutter
***
Posts: 107


WWW
« Reply #13 on: June 02, 2006, 12:27:51 am »

Alright. I'll go ahead and rip it out of the core (yay! clean the core!).
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.215 seconds with 18 queries.