add option to open specific files in the browser

Open
#254 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
cli, devtools

Research direction

Start at the livereload command invoked by the tox configuration and trace how its arguments are parsed and how the browser is opened. Implement the requested --open-in-browser mytalk/mytalk.html behavior so the browser uses the live-reload server's host, port, and path; verify the command opens that specific file.

Written by the indexing model from the issue text.

Description

context, i'm using live-reload to auto-update views on reveal.js presentations in markdown files

so i have a directory tree like

repo:
-  assets: 
      | git submodule pointing to reveal.js
-  mytalk:
   - mytalk.html
   - mytalk.md
- my-othertalk: 
    ...
- tox.ini

where tox.ini just spells something like

[tox]
skipsdist=true
envlist=live
[testenv:live]
skip_install=true
deps =
   livereload
commands =
 	livereload {{posargs}}

i would like to be able to invoke something like
tox -- --open-in-browser mytalk/mytalk.html

to have live-reload open $hostname:$randomport/mytalk/mytalk.html
instead of going to the server and adding the path there

Dominant language
Python
Stars
1.1k
Forks
149
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from lepture/python-livereload

All issues in lepture/python-livereload

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.