I am using beginning-of-buffer
to the jump beginning of a buffer.
Is it possible to achive same behavior but to the first line under the import or
from` section in the Python mode.
In this example I want to jump to 17th line. There could be multiple modules under from ... import (
and there could be also a new-line in between from ...
and import...
lines.
1: #!/usr/bin/env python3
2:
3: import os
4: import sys
5: import textwrap
6: import time
7: from broker.utils.tools import log
8:
9: import zc.lockfile
10: from ipdb import launch_ipdb_on_exception
11:
12: from broker.utils import (
13: CacheType,
14: StorageID,
15: )
16:
17: # <== jump here
18:
19: def _main():
20: from my_module.utils.tools import work
21:
22: work()