Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The fn-view function is great to quickly inspect an implementation, but once we want to edit we could save one step by opening the file at the line where the function starts. We could accomplish this by returning
+[line number] [full path to file]
A patch is coming up in the first comment.
Comment | File | Size | Author |
---|---|---|---|
#3 | devel-format-fn-view-pipe-1421882-3.patch | 2.07 KB | juampynr |
#1 | return_line_number_on_fn_show_with_pipe_1421882_1.patch | 748 bytes | juampynr |
Comments
Comment #1
juampynr CreditAttribution: juampynr commentedHere is a patch. I have tested it with nano, gedit, vi and vim. Applies cleanly on 8.x, 7.x, and 6.x branches.
example:
Comment #2
moshe weitzman CreditAttribution: moshe weitzman commentedMaybe we need a --pattern option where one can specify where the line number should go? For example, Komodo IDE has a different syntax - http://community.activestate.com/faq/komodo-command-line
Comment #3
juampynr CreditAttribution: juampynr commentedHere it is, but used --format instead of --pattern. Let me know if you want me to change it.
Comment #4
juampynr CreditAttribution: juampynr commentedChanging status to needs review.
Comment #6
juampynr CreditAttribution: juampynr commentedSo it seems that the Testing System is broken ATM.
Comment #7
moshe weitzman CreditAttribution: moshe weitzman commentedCommitted to all branches. Thanks.