links should be openable

Aperta
#167 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
58/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
javascript
Ambito
desktop-dev

Direzione di ricerca

The behaviour belongs to the link handling in the editor's click path, so start by finding where regular clicks on links already open the link dialog. Add a branch for ctrl-click (cmd-click on macOS) that opens http(s) links in the system browser, opens local .md/.markdown files in a new tab and switches to it, and otherwise returns without acting. Done when each of the three link types behaves as specified and plain clicks still open the dialog.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement

People should be able to open links: regular clicks on a link should open the link dialog, but ctrl-click (on windows and linux) or cmd-click (on macos) should:

  • open the link in whatever is the system's browser if it's an http(s) link
  • open the relative document in a new tab and switch to that tab if it's a link to a local .md/.markdown file
  • for any other link type, do nothing (that is, literally do nothing, ignore the event and do not trigger anything)
Lingua principale
JavaScript
Stelle
1
Fork
1
Merge medio
9h 8m
PR unite (30g)
16

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Pomax/markdown-editor

Tutte le issue di Pomax/markdown-editor

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.