Bug 78006

Summary: Kate should go to line n of file 'file' if started as 'kate +5 file'
Product: [Applications] kate Reporter: Tobias Burnus <burnus>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: wishlist CC: nospam
Priority: LO    
Version First Reported In: 2.1   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Tobias Burnus 2004-03-19 15:22:16 UTC
Version:           2.1 (using KDE 3.1.4)
Installed from:    SuSE
Compiler:          gcc version 3.3.1 (SuSE Linux)
OS:          Linux (i686) release 2.4.21-199-default

Virtually all editors under Unix support the "$EDITOR +line file" syntax to open the given file and jump to the given line number. KATE doesn't do this.

Expected: Kate does so.
Comment 1 Anders Lund 2004-03-20 12:14:06 UTC
kate --help tells me:
Options:
  -n                        Start a new Kate process (off by default)
  -w                        Open a new Kate window
  --initplugin <argument>   Allow Kate to be initialized by a plugin. You most probably have to specify a file too.
  --line <argument>         Navigate to this line
  --column <argument>       Navigate to this column

Arguments:
  file(s)                   Files to load

so the functionality is allready there
Comment 2 Tobias Burnus 2004-03-20 23:09:38 UTC
I wrote:
> Virtually all editors under Unix support the "$EDITOR +line file" syntax to
> open the given file and jump to the given line number. KATE doesn't do this.

Anders Lund wrote:
> --line <argument> Navigate to this line
> so the functionality is allready there
The point is that most programs expect that they can call the $EDITOR with +line to jump to the specified line.
Comment 3 Anders Lund 2004-03-20 23:29:56 UTC
Auch, the value slipped me. We should support that for kwrite as well as kate -- i guess kwrite would be a more likely candicate for $EDITOR than Kate :)
Comment 4 Jörg Afflerbach 2014-04-06 09:50:58 UTC
Okay, we have a decennial here ;) 

The following solution/hack works nicely for me, though: http://pla.nette.org/en/how-open-files-in-ide-from-debugger#toc-linux
Comment 5 Dominik Haumann 2016-06-13 18:29:19 UTC
Kate now also understads this:
kate someFile.txt:5 will open someFile.txt and cursor is in line 5
kate someFile.txt5:3 will open someFile.txt and cursor is in line5, and colum 3
Comment 6 Christoph Cullmann 2019-05-19 15:02:10 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