Bug 288944 - open folders with kate from dolphin
Summary: open folders with kate from dolphin
Status: RESOLVED NOT A BUG
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: 0.2
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
: 279054 332414 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-12-14 07:59 UTC by nowardev
Modified: 2019-06-05 21:13 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Draft Patch - support projects with no project file (2.24 KB, patch)
2014-04-17 11:55 UTC, Mathieu Jobin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description nowardev 2011-12-14 07:59:45 UTC
Version:           0.2 (using KDE 4.7.3) 
OS:                Linux

hi i would like see my service menu integrated on kate 

http://kde-apps.org/content/show.php/kate+folder+service+menu?content=147325

Reproducible: Always

Steps to Reproduce:
open dolphin
get annoyed by searching all the file oyu need to open 
open kate 
use its browser and get annoyed more
became crazy xd


Expected Results:  
open dolphin 
right menu on the folder you know you have to open
open with kate 
kate opens every text file in 

OS: Linux (i686) release 3.0.0-14-generic
Compiler: gcc
Comment 1 Mathieu Jobin 2014-04-15 10:09:54 UTC
Yes, Yes, Yes ! 

and from the command like, I want do to

cd project/folder
kate . 

Voila!

thanks
Comment 2 Mathieu Jobin 2014-04-15 10:21:39 UTC
Ok, so his service menu extension is not so good to be integrated in my opinion.
it is a workaround for a missing feature in kate.

its service menu opens EVERY FILES RECURSIVELY... in kate...

That is not what I want to do... kate should not need to open every file.

just open the folder (no open file), expand the tree. and let the user open files by clicking them.

so, Kate, in its document view, or maybe it should be a different view that "Document" I don't know... but it should be able to show all files under a folder, be it open or not.

cheers,
Comment 3 Mathieu Jobin 2014-04-17 11:55:09 UTC
Created attachment 86138 [details]
Draft Patch - support projects with no project file
Comment 4 Mathieu Jobin 2014-04-17 11:55:29 UTC
how about this...

when kate is open with a folder, we take it as if it was open as a .kateproject file 

we modified kateproject so that it supports no project files ( see draft patch attached )
minimum requirement for a project file is only a value for "name" which can easily be guessed by the folder name.

so we fake the fact there is no kateproject but open the current folder as a project.

magic
Comment 5 Dominik Haumann 2014-04-29 11:50:09 UTC
@Mathieu: Can you post the patch to reviewboard.kde.org ?
Comment 6 Mathieu Jobin 2014-05-08 03:50:33 UTC
I will when I get access back to my identity account
Comment 7 Mathieu Jobin 2016-05-19 12:57:08 UTC
this works for me now, when the project folder is a git project. it works perfectly.
when it's not a git project. I make one.

integration script from dolphin could be a bash script such as this

https://gist.github.com/mathieujobin/b8069655fb7b318b2053d94c931b3148

cheers,
Comment 8 Buovjaga 2016-06-19 10:53:09 UTC
*** Bug 279054 has been marked as a duplicate of this bug. ***
Comment 9 Buovjaga 2016-06-19 11:25:21 UTC
*** Bug 332414 has been marked as a duplicate of this bug. ***
Comment 10 Mathieu Jobin 2016-09-04 14:30:17 UTC
WORKSFORME

thanks for the auto load project from git option
Comment 11 Nate Graham 2017-12-06 20:33:08 UTC
So is this fixed now, or only when using https://gist.github.com/mathieujobin/b8069655fb7b318b2053d94c931b3148 or something else?
Comment 12 Christoph Cullmann 2019-05-19 15:05:48 UTC
Dear user, this wish list item is now closed, as it wasn't touched in the last year and no contributor stepped up to implement it.

The Kate/KTextEditor team is small and we can just try to keep up with fixing bugs.

Therefore wishes that show no activity for a years or more will be closed from now on to keep at least a bit overview about 'current' wishs of the users.
If you want your feature to be implemented, please step up to provide some patch for it.

If you think it is really needed, you can reopen your request, but keep in mind,
if no new good arguments are made and no people get attracted to help out to implement it,
it will expire in a year again.

We have a nice website https://kate-editor.org that provides all the information needed to contribute, please make use of it.

Patches can be handed in via https://phabricator.kde.org/differential/

Greetings
Christoph Cullmann
Comment 13 Nate Graham 2019-05-20 14:18:01 UTC
Mathieu, can you please post the patch on https://phabricator.kde.org?
Comment 14 Mathieu Jobin 2019-06-05 21:13:15 UTC
i dont believe this shell script would get merged.
its a nice idea, but I dont use it myself anymore.
I just `kate somefile` and the git project extension loads the tree and I am happy with that.

several years ago, I was used to type 
> $editor $folder
but I am fine doing like this now

> cd $folder; kate $file