ShareShortcuts
Bifurcar “Copy Between What”

¿Creaste algo nuevo a partir de este atajo? Compártelo como bifurcación: se convierte en un atajo tuyo, que tú administras, y ambas páginas se enlazan entre sí para que hunter9888x reciba el crédito.

  1. 1Obtén el atajo y modifícalo en la app Atajos. Ponle un nombre propio.
  2. 2Compártelo desde la app Atajos y copia el enlace de iCloud.
  3. 3Vuelve aquí, pega el enlace y describe qué es diferente, p. ej., “Se añadió un paso que usa Apple Intelligence para personalizar el texto”.
Descargas
63K
Guardado
1
Acciones
66
Categoría
Utilities
Versión
2.1
Idioma
EN

Copy between a specific text or symbol

Then deletes the text or symbol between what was copied

Option to create a folder & option to save too

Adds one empty line between matches

& option to have no empty lines

However, when you specifically search for metacharacters such as .[{()\^$|?*+, you need to escape them with backslash \, so they can be recognized.

For example, if you need to find ., type \. in the search field.

Example: I specify

( on left side & ) on right side

(some text) than it would delete ( )

& save some text To a file

Created by me

Novedades

Versión 2.1

Better version

Historial de versiones
2.1 20 de ene. de 2020

Better version

2.0 6 de ene. de 2020

Adds empty line

1.0 6 de ene. de 2020

First release

Qué hace

66 acciones
  1. Choose from Menu
    copy between what
  2. Choose from Menu
    both sides of text
  3. Ask for Input
    Look For what on left & right side of text
  4. Set Variable
    Both sides of text
  5. Get File
  6. Repeat with Each
  7. Get Name
  8. Set Variable
    Name
  9. Get Text from Input
  10. Set Variable
    Get text
  11. Match Text
  12. Text
  13. Set Name
  14. Choose from Menu
    both sides of text (save)
  15. Ask for Input
    Look For what on left & right side of text
  16. Set Variable
    Both sides of text
  17. Get File
  18. Repeat with Each
  19. Get Name
  20. Set Variable
    Name
  21. Get Text from Input
  22. Set Variable
    Get text
  23. Match Text
  24. Text
  25. Set Name
  26. Save File
  27. Stop This Shortcut
  28. Choose from Menu
    two different sides of text
  29. Ask for Input
    Look for what on left side of text
  30. Set Variable
    Left side of text
  31. Ask for Input
    Look for what on right side of text
  32. Set Variable
    Right side of text
  33. Get File
  34. Repeat with Each
  35. Get Name
  36. Set Variable
    Name
  37. Get Text from Input
  38. Set Variable
    Get text
  39. Match Text
  40. Text
  41. Set Name
  42. Choose from Menu
    two different sides of text (save)
  43. Ask for Input
    Look for what on left side of text
  44. Set Variable
    Left side of text
  45. Ask for Input
    Look for what on right side of text
  46. Set Variable
    Right side of text
  47. Get File
  48. Repeat with Each
  49. Get Name
  50. Set Variable
    Name
  51. Get Text from Input
  52. Set Variable
    Get text
  53. Match Text
  54. Text
  55. Set Name
  56. Save File
  57. Stop This Shortcut
  58. Choose from Menu
    create folder
  59. Ask for Input
    Set folder name to use
  60. Set Variable
    New folder
  61. Create Folder
  62. Show Result
  63. Stop This Shortcut
  64. Create Folder
  65. Save File
  66. Show Result

Ver como código
Beta

Todas las acciones de este atajo escritas en Cherri, un lenguaje de programación para Atajos. Ideal para aprender cómo funciona.

#include 'actions/text'
#define color purple
#define glyph magicWandAlt


menu "copy between what " {
item "both sides of text":
	prompt("Look For what on left & right side of text")
	@BothSidesOfText
	const File = getFileFromFolder(, "")
	for _ in File {
		getName(@RepeatItem)
		@Name
		getText(@RepeatItem)
		@GetText
		containsText(@GetText, "\{@BothSidesOfText}.*\{@BothSidesOfText}")
		const Text = "{}"
		setName(Text, @Name)
	}
item "both sides of text (save)":
	prompt("Look For what on left & right side of text")
	@BothSidesOfText
	const File = getFile("")
	for _ in File {
		getName(@RepeatItem)
		@Name
		getText(@RepeatItem)
		@GetText
		containsText(@GetText, "\{@BothSidesOfText}.*\{@BothSidesOfText}")
		const Text = "{}"
		setName(Text, @Name)
	}
	const SavedFile = saveFilePrompt(RepeatResults)
	stop()
item "two different sides of text":
	prompt("Look for what on left side of text")
	@LeftSideOfText
	prompt("Look for what on right side of text")
	@RightSideOfText
	const File1 = getFile("")
	for _ in File1 {
		getName(@RepeatItem)
		@Name
		getText(@RepeatItem)
		@GetText
		containsText(@GetText, "\{@LeftSideOfText}.*\{@RightSideOfText}")
		const Text1 = "{}"
		setName(Text1, @Name)
	}
item "two different sides of text (save)":
	prompt("Look for what on left side of text")
	@LeftSideOfText
	prompt("Look for what on right side of text")
	@RightSideOfText
	const File1 = getFile("")
	for _ in File1 {
		getName(@RepeatItem)
		@Name
		getText(@RepeatItem)
		@GetText
		containsText(@GetText, "\{@LeftSideOfText}.*\{@RightSideOfText}")
		const Text1 = "{}"
		setName(Text1, @Name)
	}
	const SavedFile1 = saveFilePrompt(RepeatResults1)
	stop()
item "create folder":
	prompt("Set folder name to use")
	@NewFolder
	createFolder(@NewFolder)
	show("New folder is /Shortcuts/{@NewFolder}")
	stop()
}
createFolder("copy between what")
saveFile("copy between what", MenuResult, true)
show("In folder /Shortcuts/copy between what")
Abrir en Cherri Playground Descompilado con cherri 2.3.0 (GPL-2.0). Puede que necesite pequeños ajustes antes de compilarse.

Valoraciones y reseñas

Escribe una reseña
–
de 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Aún no hay reseñas. ¡Sé el primero en compartir tu opinión!

Publicidad

Más de hunter9888x

Ver todo

También te puede gustar

Ver todo
Publicidad