Kate text editor cannot handle lines longer than 1024?
This is a well know "security option", it is configurable:
Go to:
Settings / configure editor / open and save
set line length limit [ 1024 ]
and change 1024
Fix Kate text editor line limit via bash script
With permission of Ansgar Wiechers, I post a sed solution that seems to work for me:
sed -i.bak -e 's/^Line Length Limit=.*$/##&\nLine Length Limit=0/' ~/.kde4/share/config/katerc
It comments current value adding ##
at the beginning of the line and appending after that the same with 0
as value. I use the -i
switch that appends a .bak
suffix as backup to the original file. Use sed -i -e ...
(note the space between both switches) to modify the file in place. Be careful with this last option.
In my case, I prefer to modify files in-place with vim, so as extra I will post a one-liner that does the same than the previous sed command, only that its backup file is suffixed with ~
:
vim \
+'/^\v\cline\s+length\s+limit' \
-u NONE \
-N \
-c 'set backup | yank | s/\v^/##/ | put | s/\v(\=\s*)\d+/\10/ | x' \
~/.kde4/share/config/katerc
Kate (text editor) indentation, c++
Ok, I tried for half an hour, I don't know why I found out how to do it right AFTER posting the question :). So in case anybody has the same issue, here is the "solution": I missed that kate seems to have a global setting for the indentation mode as well as a local one for every file. In my case - for some reason - my file had special indentation options set. You can alter them via the menu bar by chosing "Tools -> Indentation". This local option overrides the global one! Or the global one is just the default for the local options, I don't know exactly...
Kate Text Editor regexp for CNC code alteration on PC
First, go to View -> Tool Views -> Show Search and Replace. You will see
Make sure you:
- Enable
{}
regex option on the right as you are using a regex - Enable "AB" option on the right that enables case sensitive matching
- Select
In Folder
value from the dropdown on the right - Fill out the regex, replacement, Folder and the Filter fields with the appropriate values
- Click Search button.
You will see the results in a separate pane and Replace / Replace Checked buttons will become enabled.
Review the replacements and click Replace Checked:
Then you may check the updated file contents, and if you are satisifed with the results, use Save All, also by pressing CTRL+L.
Concatenating Column Values into a Comma-Separated List
You can do a shortcut using coalesce
to concatenate a series of strings from a record in a table, for example.
declare @aa varchar (200)
set @aa = ''
select @aa =
case when @aa = ''
then CarName
else @aa + coalesce(',' + CarName, '')
end
from Cars
print @aa
Related Topics
Creating an Alias in Ubuntu, in .Profile
How to Force a Range of Virtual Addresses
Run 'Perf Stat' on The Output of 'Perf Record'
Linux Shell Kill Signal Sigkill && Kill
What Means "Atomic" System Call
Is There a Rpm File Naming Convention in Lsb
Linux: How to Send Tcp Packet from Specific Port
Enabling The Vt-X Inside a Virtual Machine
Shared Libraries in Same Folder with App in Tcsh
Installing New Version of Python on Debian Linux Server
Install Ssh Server on Embedded Device
Setjmp and Longjmp - Understanding with Examples
Nohup Error No Such File or Directory
Get The Count of Bytes Waiting on a Serial Port Before Reading, Linux
Grep -F on Files in a Zipped Folder