Idea: a Sublime-like code editor for Win 3.1/9x with Git client

Getting old software/games running on older hardware.

Idea: a Sublime-like code editor for Win 3.1/9x with Git client

Postby keenmaster486 » 2019-3-24 @ 18:16

Gee, wouldn’t this be nice? If I or someone else wrote a program like this would people use it? I sure would.
I flermmed the plootash just like you asked.

http://classictechnology.herokuapp.com
http://keenmaster486.github.io
IBM Thinkpad 600E, 560X, 365CD
User avatar
keenmaster486
Oldbie
 
Posts: 1807
Joined: 2016-2-16 @ 02:04
Location: Atroxus

Re: Idea: a Sublime-like code editor for Win 3.1/9x with Git client

Postby retardware » 2019-3-24 @ 18:28

Take a look at Underware's Brief editor.
It does all what Sublime can and runs in DOS.
If it doesn't do a thing, you just program that thing in the embedded macro language of that editor.
(Don't be misled by the term "macro language", it is a powerful language which provides you with regexps and a lexer)
retardware
Oldbie
 
Posts: 642
Joined: 2019-1-30 @ 02:00

Re: Idea: a Sublime-like code editor for Win 3.1/9x with Git client

Postby yawetaG » 2019-3-24 @ 18:56

keenmaster486 wrote:Gee, wouldn’t this be nice? If I or someone else wrote a program like this would people use it? I sure would.


...except that most Git repositories stopped supporting the SSH protocols that Win 3.x can use, so good luck with that.
yawetaG
Oldbie
 
Posts: 1451
Joined: 2016-6-14 @ 14:36
Location: Netherlands

Re: Idea: a Sublime-like code editor for Win 3.1/9x with Git client

Postby Gered » 2019-3-24 @ 22:38

I would absolutely love such a thing, but I don't see it happening anytime soon unfortunately. I'd actually prefer such a thing for DOS myself, but would take whatever I could get. ;-)

I've just gotten used to having to periodically SCP files to my Mac to do Git commits/branches/etc then sync everything back in reverse (obviously important to do in the event that e.g. a branch switch resulted in added/removed files, etc). It does also mean that I commit far less frequently then I would normally do if I had Git support built right into the editor/IDE because of the annoyance of having to run a separate BAT file to move files across and then back again (maybe)... but meh.
User avatar
Gered
Member
 
Posts: 204
Joined: 2017-6-23 @ 22:31
Location: Toronto, Canada

Re: Idea: a Sublime-like code editor for Win 3.1/9x with Git client

Postby keenmaster486 » 2019-3-25 @ 01:07

Right now what I am doing is opening a terminal to a server running Linux, and FTP-ing the files over there where I can run the Git commands. It works. But obviously not ideal.

As for supporting uploading to Git repositories, very bad idea to make it OS-dependent anyway - better to build the support right into the program. Plenty of ways to do this.

retardware wrote:Take a look at Underware's Brief editor.

Great, took me a while to get Google to filter out underwear ads. Well, this is interesting but doesn't support Git, does it?
I flermmed the plootash just like you asked.

http://classictechnology.herokuapp.com
http://keenmaster486.github.io
IBM Thinkpad 600E, 560X, 365CD
User avatar
keenmaster486
Oldbie
 
Posts: 1807
Joined: 2016-2-16 @ 02:04
Location: Atroxus

Re: Idea: a Sublime-like code editor for Win 3.1/9x with Git client

Postby bfcastello » 2019-3-25 @ 02:33

Git in MS-DOS? Whaaaaat??? *shocked*
"Design isn't just what it looks like and feels like. Design is how it works."
JOBS, Steve.
User avatar
bfcastello
Member
 
Posts: 265
Joined: 2017-9-07 @ 02:39
Location: Rio de Janeiro, Brazil and Catalonia, Spain

Re: Idea: a Sublime-like code editor for Win 3.1/9x with Git client

Postby yawetaG » 2019-3-25 @ 06:59

keenmaster486 wrote:
As for supporting uploading to Git repositories, very bad idea to make it OS-dependent anyway - better to build the support right into the program. Plenty of ways to do this.


It is not OS dependent. Git uses your OS for communicating with the outside world. In the case of Git repositories such as Github, the (secure) communication protocol required is simply not supported by Win 3.x. Heck, it's not supported on computers a few years old (without using OpenSSH).
So what happens is that you will try making the connection, and Github will refuse your connection via a nice, cryptic error message from Git (if you use Git's source code as a base for your project).
yawetaG
Oldbie
 
Posts: 1451
Joined: 2016-6-14 @ 14:36
Location: Netherlands

Re: Idea: a Sublime-like code editor for Win 3.1/9x with Git client

Postby jmarsh » 2019-3-25 @ 07:12

You can just plug in a library that implements the crypto instead of relying on the OS to do it, is what he meant.
jmarsh
Member
 
Posts: 281
Joined: 2014-1-04 @ 09:17

Re: Idea: a Sublime-like code editor for Win 3.1/9x with Git client

Postby BloodyCactus » 2019-3-25 @ 12:15

You could only get git working under win9x anyway because git relies on long file names. You can often just use HTTP/HTTPS instead of SSH if its not available.
--/\-[ Stu : Bloody Cactus :: http://kråketær.com :: http://mega-tokyo.com ]-/\--
User avatar
BloodyCactus
Oldbie
 
Posts: 900
Joined: 2016-2-03 @ 13:34
Location: Lexington VA

Re: Idea: a Sublime-like code editor for Win 3.1/9x with Git client

Postby root42 » 2019-3-25 @ 12:28

I think this would be an exercise in futility. The system requirements on non-trivial git repositories are huge, and git is written as a conglomerate of bash scripts, C code and other bits, that porting it to DOS would be a nightmare. Better to use a network share and have ANY modern machine (maybe a Pi?) communicate with github and the network share represent the source code that you want to edit on your DOS machine.
Soldering, retro game reviews and more on YouTube and Bonus videos
80386DX@25 MHz, 8 MiB RAM, Tseng ET4000 1 MiB, Jazz16, PC MIDI Card + SC55MkII + MT32, XT CF Lite, OSSC 1.6
User avatar
root42
Oldbie
 
Posts: 1250
Joined: 2018-1-27 @ 13:23

Re: Idea: a Sublime-like code editor for Win 3.1/9x with Git client

Postby yawetaG » 2019-3-25 @ 18:36

root42 wrote:I think this would be an exercise in futility. The system requirements on non-trivial git repositories are huge, and git is written as a conglomerate of bash scripts, C code and other bits, that porting it to DOS would be a nightmare. Better to use a network share and have ANY modern machine (maybe a Pi?) communicate with github and the network share represent the source code that you want to edit on your DOS machine.


There are Windows versions (alas not for Win 9x AFAIK), but I've found them a pain to use because they usually port a miniature Linux shell to Windows that does not integrate nicely with Windows. There also are a few graphical front-ends that unfortunately suck because they don't even implement all of the basic functionality of Git and are therefore mostly useless (and may lead to fuckups with repositories).
yawetaG
Oldbie
 
Posts: 1451
Joined: 2016-6-14 @ 14:36
Location: Netherlands

Re: Idea: a Sublime-like code editor for Win 3.1/9x with Git client

Postby keenmaster486 » 2019-3-25 @ 18:41

It seems, then, that the only way to achieve a Git client for DOS/Win3x/Win9x would be to completely rewrite the whole thing in native x86 or C/C++ code, without any scripting or anything, so as not to have to rely on porting existing code.

Probably a far bigger project than any one person or small community could take on.

So back to the original idea, maybe just the text editor. Maybe it even has the ability to load and save files directly on an ftp server.
I flermmed the plootash just like you asked.

http://classictechnology.herokuapp.com
http://keenmaster486.github.io
IBM Thinkpad 600E, 560X, 365CD
User avatar
keenmaster486
Oldbie
 
Posts: 1807
Joined: 2016-2-16 @ 02:04
Location: Atroxus

Re: Idea: a Sublime-like code editor for Win 3.1/9x with Git client

Postby bfcastello » 2019-3-25 @ 19:24

keenmaster486 wrote:So back to the original idea, maybe just the text editor. Maybe it even has the ability to load and save files directly on an ftp server.


Sounds reasonably good. Question: What about adding a terminal window to issue commands while logged into the server?
"Design isn't just what it looks like and feels like. Design is how it works."
JOBS, Steve.
User avatar
bfcastello
Member
 
Posts: 265
Joined: 2017-9-07 @ 02:39
Location: Rio de Janeiro, Brazil and Catalonia, Spain

Re: Idea: a Sublime-like code editor for Win 3.1/9x with Git client

Postby keenmaster486 » 2019-3-25 @ 19:39

bfcastello wrote:Sounds reasonably good. Question: What about adding a terminal window to issue commands while logged into the server?

Oh, that's a good idea. A terminal is a whole other project, though, and ought to be developed separately and integrated into the editor.
I flermmed the plootash just like you asked.

http://classictechnology.herokuapp.com
http://keenmaster486.github.io
IBM Thinkpad 600E, 560X, 365CD
User avatar
keenmaster486
Oldbie
 
Posts: 1807
Joined: 2016-2-16 @ 02:04
Location: Atroxus

Re: Idea: a Sublime-like code editor for Win 3.1/9x with Git client

Postby yawetaG » 2019-3-26 @ 19:06

keenmaster486 wrote:
bfcastello wrote:Sounds reasonably good. Question: What about adding a terminal window to issue commands while logged into the server?

Oh, that's a good idea. A terminal is a whole other project, though, and ought to be developed separately and integrated into the editor.


Windows has a Terminal emulation program (aptly called "Terminal") as well as a Telnet client (called "Telnet").
yawetaG
Oldbie
 
Posts: 1451
Joined: 2016-6-14 @ 14:36
Location: Netherlands

Re: Idea: a Sublime-like code editor for Win 3.1/9x with Git client

Postby keenmaster486 » 2019-3-26 @ 19:16

yawetaG wrote:Windows has a Terminal emulation program (aptly called "Terminal") as well as a Telnet client (called "Telnet").

Windows also has a web browser, called "Internet Explorer". But we don't use that because it cannot access any modern websites.

The terminal would have to support SSH and be open source so we could integrate it into the text editor. It would also need to be as fast as possible in order to work on the target machines and still give a good user experience.
I flermmed the plootash just like you asked.

http://classictechnology.herokuapp.com
http://keenmaster486.github.io
IBM Thinkpad 600E, 560X, 365CD
User avatar
keenmaster486
Oldbie
 
Posts: 1807
Joined: 2016-2-16 @ 02:04
Location: Atroxus

Re: Idea: a Sublime-like code editor for Win 3.1/9x with Git client

Postby yawetaG » 2019-3-26 @ 20:04

keenmaster486 wrote:
yawetaG wrote:Windows has a Terminal emulation program (aptly called "Terminal") as well as a Telnet client (called "Telnet").

Windows also has a web browser, called "Internet Explorer". But we don't use that because it cannot access any modern websites.

The terminal would have to support SSH and be open source so we could integrate it into the text editor. It would also need to be as fast as possible in order to work on the target machines and still give a good user experience.


Thanks for the condescending tone.

Perhaps you could try one of the two programs mentioned to see how slow they are?

I certainly only had problems when using Telnet on Windows XP to access Multi-User Dungeons. I mean, I had to wait a whole 10 seconds to log in at times. It was horrible. :roll:
yawetaG
Oldbie
 
Posts: 1451
Joined: 2016-6-14 @ 14:36
Location: Netherlands

Re: Idea: a Sublime-like code editor for Win 3.1/9x with Git client

Postby keenmaster486 » 2019-3-26 @ 20:09

The Telnet client on Windows is great, I haven't had any problems with it, and it's fast.

The only issue is that it doesn't support SSH. For that, you are stuck with older versions of PuTTY, which work fine but are a little slow, and probably harder to couple with a newly written text editor.
I flermmed the plootash just like you asked.

http://classictechnology.herokuapp.com
http://keenmaster486.github.io
IBM Thinkpad 600E, 560X, 365CD
User avatar
keenmaster486
Oldbie
 
Posts: 1807
Joined: 2016-2-16 @ 02:04
Location: Atroxus

Re: Idea: a Sublime-like code editor for Win 3.1/9x with Git client

Postby bfcastello » 2019-3-26 @ 20:39

"Design isn't just what it looks like and feels like. Design is how it works."
JOBS, Steve.
User avatar
bfcastello
Member
 
Posts: 265
Joined: 2017-9-07 @ 02:39
Location: Rio de Janeiro, Brazil and Catalonia, Spain

Re: Idea: a Sublime-like code editor for Win 3.1/9x with Git client

Postby keenmaster486 » 2019-3-26 @ 20:49

bfcastello wrote:There is SSHDOS.

http://sshdos.sourceforge.net


Ah yes, I have seen this before - could be useful maybe if ported to Win32? Or portions of the code could be used.


Well, I think the first order of business is to write a Notepad-style text editor just to begin with. Maybe I will work on that this week.
I flermmed the plootash just like you asked.

http://classictechnology.herokuapp.com
http://keenmaster486.github.io
IBM Thinkpad 600E, 560X, 365CD
User avatar
keenmaster486
Oldbie
 
Posts: 1807
Joined: 2016-2-16 @ 02:04
Location: Atroxus

Next

Return to Software

Who is online

Users browsing this forum: No registered users and 2 guests