Using Kate instead of nano

This commit is contained in:
pezcurrel 2022-12-03 22:24:00 +01:00
parent 0398b96b48
commit 32a8c1587c

View file

@ -122,7 +122,8 @@ foreach ($opts['files'] as $file) {
while (!in_array($inp,['y','n','e','']))
$inp=strtolower(prompt('Do you want to edit it? [(y)es/(N)o/(e)xit] '));
if ($inp=='y')
system('nano +'.$i.' '.escapeshellarg($file).' > `tty`');
//system('nano +'.($i+1).' '.escapeshellarg($file).' > `tty`');
system('kate -l '.($i+1).' '.escapeshellarg($file));
elseif ($inp=='e')
exit(0);
}