[opensuse-kde3] konqueror - file association - how make x-shellscript display in embedded viewer like group 'text'?
All, One quirk I have always wanted to fix is that konqueror (--profile filemanagment) treats BASH scripts as type `x-shellscript` instead of plain text. What this does is makes it impossible to tell konqueror to just display the script in the preview pane with the `Embedded Advanced Text Editor (katepart)` like you can with normal text files. This may be easy to do and I just haven't figured it out, but how do you do it? When you (right-click) edit the properties for a file.sh, the problem (looks like a bug) is that when you tell it to `Show file in embedded viewer` -- it doesn't. (I don't know what it does, I presume it tries to run the file) Another problem when you edit the properties for file.sh, the [Embedding] tab offers the `Left Click Action` to `Use settings for 'application' group` instead of the 'text' group. For some reason this prevents being able to display the file. How do you tell konqueror to just display the script in the embedded viewer? -- David C. Rankin, J.D.,P.E. -- To unsubscribe, e-mail: opensuse-kde3+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kde3+owner@opensuse.org
On Saturday 26 July 2014 18:13:00 David C. Rankin wrote:
All,
One quirk I have always wanted to fix is that konqueror (--profile filemanagment) treats BASH scripts as type `x-shellscript` instead of plain text. What this does is makes it impossible to tell konqueror to just display the script in the preview pane with the `Embedded Advanced Text Editor (katepart)` like you can with normal text files.
This may be easy to do and I just haven't figured it out, but how do you do it? When you (right-click) edit the properties for a file.sh, the problem (looks like a bug) is that when you tell it to `Show file in embedded viewer` -- it doesn't. (I don't know what it does, I presume it tries to run the file)
Another problem when you edit the properties for file.sh, the [Embedding] tab offers the `Left Click Action` to `Use settings for 'application' group` instead of the 'text' group. For some reason this prevents being able to display the file.
How do you tell konqueror to just display the script in the embedded viewer?
-- David C. Rankin, J.D.,P.E.
I found that I can make left-clicking work by making the topmost application one of the editors (KWrite is what I used), but it opens in a separate window; for right-clicking, in the Embedded tab I have 'Show file in Embedded viewer' selected and 'Ask whether to save to disk instead' activated; when I right-click it opens in the Konqueror pane. Here's a related question: for shell scripts without the .sh extension, is there a way to make Konqueror recognize the filetype by its #! header? I almost never use the .sh extension on scripts that I write. Leslie -- A Caution to Everybody Consider the Auk; Becoming extinct because he forgot how to fly, and could only walk. Consider man, who may well become extinct Because he forgot how to walk and learned how to fly before he thinked. -- Ogden Nash -- To unsubscribe, e-mail: opensuse-kde3+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kde3+owner@opensuse.org
On 08/02/2014 10:53 PM, J. Leslie Turriff wrote:
I found that I can make left-clicking work by making the topmost application one of the editors (KWrite is what I used), but it opens in a separate window; for right-clicking, in the Embedded tab I have 'Show file in Embedded viewer' selected and 'Ask whether to save to disk instead' activated; when I right-click it opens in the Konqueror pane.
Thanks Leslie, that is how I have it configured, but I was trying to get it not to launch kwrite (embedded viewer is much quicker if I just want to look at it)
Here's a related question: for shell scripts without the .sh extension, is there a way to make Konqueror recognize the filetype by its #! header? I almost never use the .sh extension on scripts that I write.
Well... no :( The only way konqueror has to differentiate one text file from another is with the extension. (sound like an opportunity for you to write a new plugin :) -- David C. Rankin, J.D.,P.E. -- To unsubscribe, e-mail: opensuse-kde3+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kde3+owner@opensuse.org
On Sunday 03 August 2014 00:56:26 David C. Rankin wrote:
On 08/02/2014 10:53 PM, J. Leslie Turriff wrote:
Here's a related question: for shell scripts without the .sh extension, is there a way to make Konqueror recognize the filetype by its #! header? I almost never use the .sh extension on scripts that I write.
Well... no :(
The only way konqueror has to differentiate one text file from another is with the extension. (sound like an opportunity for you to write a new plugin :)
-- David C. Rankin, J.D.,P.E.
If only I knew how to do such a thing, I would. -- A Caution to Everybody Consider the Auk; Becoming extinct because he forgot how to fly, and could only walk. Consider man, who may well become extinct Because he forgot how to walk and learned how to fly before he thinked. -- Ogden Nash -- To unsubscribe, e-mail: opensuse-kde3+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kde3+owner@opensuse.org
participants (2)
-
David C. Rankin
-
J. Leslie Turriff