I'm using EOS Hera (Ubuntu 18.04) with CudaText 1.97.6.0
I think CT could have a wrapper for the command line. The main reason is that when you use CT to open a file from the terminal, CT doesn't "free" the terminal. It keeps running from it. Differently from Sublime Text, that when it's executed from the terminal, it opens the program and after that, gives you the terminal back to you.
If you have Sublime installed you can see what I'm trying to say here, simply opening a file from the terminal. After that, try the same with Cuda.
maybe this wrapper can be made using Bash feature?
ie, alias?
Could be. Is there any special argument you need to pass?
do you want to write that script?
I tried this...it didn't work
#!/bin/bash
exec /opt/cudatext/cudatext "$0" "$@"
I don't know bash syntax, so cannot make script.
Bash alias does not directly accept parameters. You will have to create a function.
function cuda() {
/opt/cudatext/cudatext $1
}
To make it more affordable although the parameter includes the path (relative or not) along with the file name:
function cuda() {
_path=$(dirname $(readlink -f $1))
_file=`basename $1`
/opt/cudatext/cudatext $_path/$_file
}
I dont know bash, so cannot validate the script
To know what you know and what you do not, that is true knowledge.
-Confucius
Upsssss
It works fine on another platform, but testing on Lubuntu 18.04 this happens (with any file):
$ cuda 聽/etc/*-release
[FORMS.PP] ExceptionOccurred
聽 Sender=EAccessViolation
聽 Exception=Access violation
聽 Stack trace:
聽 $082E8A1C
聽 $B7671EF4
Exception at 082E8A1C: EAccessViolation:
Access violation.
And googling it sends me to Lazarus... any idea?
Here is the DOS version:
@for %%* in (%1) do "C:\wherever\you\have\the\program\cudatext.exe" "%%~dpF*"
You can put it on .BAT file in some place where you have access with your PATH variable
if you made the wrapper, post it some site, give the link at forum. thanks.
Maybe there could be a scripts folder where these DOS and Linux wrapper would go, and successive utilities / macros / AHK ...
Maybe there could be a
scriptsfolder where these DOS and Linux wrapper would go, and successive utilities / macros / AHK ...
Are you agree @Alexey-T ?
Cud don't need scripts folder, scripts can be in the root dir.
Cud don't need scripts folder, scripts can be in the root dir.
I mean a folder in the repository.
Do you want me to do a PR to add them? In a folder?
also folder in repository is not needed.
what is good is to make a youtube video for Cud.
@Alexey-T
Why is good a youtube video?
Has UVviewsoft got a Youtube account?
Cud don't need scripts folder, scripts can be in the root dir.
Ok, I have sent a PR to root dir with the DOS wrapper
publish this wrapper in your Github and post link to users at forum. don't do PRs.