feat(url-sync): make URL synchronization configurable#278
Closed
andymedinadev wants to merge 4 commits intomidudev:mainfrom
Closed
feat(url-sync): make URL synchronization configurable#278andymedinadev wants to merge 4 commits intomidudev:mainfrom
andymedinadev wants to merge 4 commits intomidudev:mainfrom
Conversation
6158731 to
a711d80
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Configuración para que la sincronización de la URL sea opcional
Este PR introduce una nueva configuración para poder activar o desactivar la sincronización del código en la URL, evitando que cada cambio en el editor genere una nueva entrada en el historial del navegador.
Con el comportamiento actual de codi.link, con cada tipeo se actualiza la URL para que compartir código sea sencillo.
Pero eso tiene la desventaja de que llena el historial de navegación con navegaciones dentro de codi.link solo por las actualizaciones del editor.
Personalmente, me resultaba tan molesto que terminé acostumbrándome a abrir codi.link en ventana de incógnito para evitarlo.
Entonces decidí desarrollar esta configuración para solucionar el problema y que sea de manera opcional para quienes quieran seguir viendo la URL actualizada en el momento.
🚀 Cambios principales
Al cambiar como funciona la URL cuando se activa esta configuración, tuve que modificar las funcionalidades para copiar la URL pulsando un botón de la interfaz o con el comando Ctrl+Shift+C
🧠 Motivación
✅ Resultado