Often, the git repos I work in have a similar layout (for example every python project has a setup.py
with an install_requires
line in it).
Is it possible to add a bookmark that points to a similar line in a file relative to (projectile-project-root)
? Is it possible to have this only appear in the bookmark list if I am visiting a file in the right sort of repository?
Example:
We might have directories
- /home/user/node-project1
- /home/user/node-project2
- /home/user/c-project1
- /home/user/c-project2
- /home/user/python-project1
- /home/user/python-project1
In the c projects I might want to jump to (projectile-project-root)/Makefile
but not in python or node projects. You might want to jump to the all:
target.
In python projects I might want to jump (projectile-project-root)/setup.py
but not in c or node projects. I might want to jump to the install_requires
line.
In node projects I might want to jump to (projectile-project-root)/package.json
, but not in c or python projects. I might want to jump to the "dependencies": {
line.