{"id":13586083,"url":"https://github.com/fatih-yavuz/alfred-string-operations","last_synced_at":"2025-04-07T14:33:26.722Z","repository":{"id":55582532,"uuid":"250825307","full_name":"fatih-yavuz/alfred-string-operations","owner":"fatih-yavuz","description":"Perform string operations to clipboard content","archived":false,"fork":false,"pushed_at":"2020-12-20T18:02:02.000Z","size":30,"stargazers_count":76,"open_issues_count":8,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-08-02T16:02:36.612Z","etag":null,"topics":["alfred","alfred-workflow","alfred-workflows","alfred3","alfred3-workflow","alfred4-workflow","clipboard","converts","development","kebab-case","productivity","text","text-manipulation"],"latest_commit_sha":null,"homepage":"https://github.com/fatih-yavuz/alfred-string-operations","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fatih-yavuz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-28T15:10:54.000Z","updated_at":"2024-06-20T08:44:12.000Z","dependencies_parsed_at":"2022-08-15T03:40:13.704Z","dependency_job_id":null,"html_url":"https://github.com/fatih-yavuz/alfred-string-operations","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fatih-yavuz%2Falfred-string-operations","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fatih-yavuz%2Falfred-string-operations/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fatih-yavuz%2Falfred-string-operations/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fatih-yavuz%2Falfred-string-operations/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fatih-yavuz","download_url":"https://codeload.github.com/fatih-yavuz/alfred-string-operations/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223285052,"owners_count":17119825,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["alfred","alfred-workflow","alfred-workflows","alfred3","alfred3-workflow","alfred4-workflow","clipboard","converts","development","kebab-case","productivity","text","text-manipulation"],"created_at":"2024-08-01T15:05:18.985Z","updated_at":"2024-11-06T04:30:49.912Z","avatar_url":"https://github.com/fatih-yavuz.png","language":"Python","funding_links":[],"categories":["Python","Developer"],"sub_categories":[],"readme":"# alfred-string-operations\nYou can dowload the workflow [here](http://www.packal.org/workflow/string-operations)\n\nYou can find list of commands that this workflow provides.\n\nAll of the operation is performed to the content on the clipboard.\nThe result will be saved to the clipboard.\n\n## Encoding / Decoding\n### bs64.decode\nDecodes base64\n#### Example\n##### Source\n```\nVGhlcmUgYXJlIHR3byBNdXN0YWZhIEtlbWFsJ3MuIE9uZSBpcyB0aGUgZmxlc2gtYW5kLWJvbmUgTXVzdGFmYSBLZW1hbCB3aG8gbm93IHN0YW5kcyBiZWZvcmUgeW91IGFuZCB3aG8gd2lsbCBwYXNzIGF3YXkuIFRoZSBvdGhlciBpcyB5b3UsIGFsbCBvZiB5b3UgaGVyZSB3aG8gd2lsbCBnbyB0byB0aGUgZmFyIGNvcm5lcnMgb2Ygb3VyIGxhbmQgdG8gc3ByZWFkIHRoZSBpZGVhbHMgd2hpY2ggbXVzdCBiZSBkZWZlbmRlZCB3aXRoIHlvdXIgbGl2ZXMgaWYgbmVjZXNzYXJ5LiBJIHN0YW5kIGZvciB0aGUgbmF0aW9uJ3MgZHJlYW1zLCBhbmQgbXkgbGlmZSdzIHdvcmsgaXMgdG8gbWFrZSB0aGVtIGNvbWUgdHJ1ZS4=\n```\n##### Destination\n```\nThere are two Mustafa Kemal's. One is the flesh-and-bone Mustafa Kemal who now stands before you and who will pass away. The other is you, all of you here who will go to the far corners of our land to spread the ideals which must be defended with your lives if necessary. I stand for the nation's dreams, and my life's work is to make them come true.\n```\n\n### bs64.encode\nEncodes base64\n#### Example\n##### Source\n```\nThere are two Mustafa Kemal's. One is the flesh-and-bone Mustafa Kemal who now stands before you and who will pass away. The other is you, all of you here who will go to the far corners of our land to spread the ideals which must be defended with your lives if necessary. I stand for the nation's dreams, and my life's work is to make them come true.\n```\n##### Destination\n```\nVGhlcmUgYXJlIHR3byBNdXN0YWZhIEtlbWFsJ3MuIE9uZSBpcyB0aGUgZmxlc2gtYW5kLWJvbmUgTXVzdGFmYSBLZW1hbCB3aG8gbm93IHN0YW5kcyBiZWZvcmUgeW91IGFuZCB3aG8gd2lsbCBwYXNzIGF3YXkuIFRoZSBvdGhlciBpcyB5b3UsIGFsbCBvZiB5b3UgaGVyZSB3aG8gd2lsbCBnbyB0byB0aGUgZmFyIGNvcm5lcnMgb2Ygb3VyIGxhbmQgdG8gc3ByZWFkIHRoZSBpZGVhbHMgd2hpY2ggbXVzdCBiZSBkZWZlbmRlZCB3aXRoIHlvdXIgbGl2ZXMgaWYgbmVjZXNzYXJ5LiBJIHN0YW5kIGZvciB0aGUgbmF0aW9uJ3MgZHJlYW1zLCBhbmQgbXkgbGlmZSdzIHdvcmsgaXMgdG8gbWFrZSB0aGVtIGNvbWUgdHJ1ZS4=\n```\n\n### percent.decode\nDecodes a percent encoded string\n#### Example\n##### Source\n```\nPeace%20at%20home%2C%20peace%20in%20the%20world.\n```\n##### Destination\n```\nPeace at home, peace in the world.\n```\n\n### percent.encode\nPercent encodes the string\n#### Example\n##### Source\n```\nPeace at home, peace in the world.\n```\n##### Destination\n```\nPeace%20at%20home%2C%20peace%20in%20the%20world.\n```\n\n## Prettifiers\n### json.prettify\nPrettifies json\n#### Example\n##### Source\n```json\n{\n  \"name\": \"Mustafa Kemal Ataturk\", \"UNESCO Resolutions\": [\n\"Convinced that personalities who worked for understanding and cooperation between nations and international peace will be examples for future generations\",\n  \"Recalling that the hundredth anniversary of the birth of Mustafa Kemal Atatürk, founder of the Turkish Republic, will be celebrated in 1981,\",\n\"Knowing that he was an exceptional reformer in all fields relevant to the competence of UNESCO\",\n\"Recognizing in particular that he was the leader of the first struggle given against colonialism and imperialism\",\n\"Recalling that he was the remarkable promoter of the sense of understanding between peoples and durable peace between the nations of the world and that he worked all his life for the development of harmony and cooperation between peoples without distinction of color, religion and race\",\n\"It is decided that UNESCO should colloborate in 1981 with the Turkish Government on both intellectual and technical plans for an international colloquium with the aim of acquainting the world with the various aspects of the personality and deeds of Atatürk whose objective was to promote world peace, international understanding and respect for human rights.\"\n]\n}\n```\n##### Destination\n```json\n{\n    \"UNESCO Resolutions\": [\n        \"Convinced that personalities who worked for understanding and cooperation between nations and international peace will be examples for future generations\",\n        \"Recalling that the hundredth anniversary of the birth of Mustafa Kemal Ataturk, founder of the Turkish Republic, will be celebrated in 1981,\",\n        \"Knowing that he was an exceptional reformer in all fields relevant to the competence of UNESCO\",\n        \"Recognizing in particular that he was the leader of the first struggle given against colonialism and imperialism\",\n        \"Recalling that he was the remarkable promoter of the sense of understanding between peoples and durable peace between the nations of the world and that he worked all his life for the development of harmony and cooperation between peoples without distinction of color, religion and race\",\n        \"It is decided that UNESCO should colloborate in 1981 with the Turkish Government on both intellectual and technical plans for an international colloquium with the aim of acquainting the world with the various aspects of the personality and deeds of Atat\\u00fcrk whose objective was to promote world peace, international understanding and respect for human rights.\"\n    ],\n    \"name\": \"Mustafa Kemal Ataturk\"\n}\n```\n\n\n### alphanumeric\nRemoves non alphanumeric characters from string\n#### Example\n##### Source\n```json\n\"Mankind is a single body and each nation a part of that body. We must never say 'What does it matter to me if some part of the world is ailing?' If there is such an illness, we must concern ourselves with it as though we were having that illness.\"\n```\n##### Destination\n```\nMankindisasinglebodyandeachnationapartofthatbodyWemustneversayWhatdoesitmattertomeifsomepartoftheworldisailingIfthereissuchanillnesswemustconcernourselveswithitasthoughwewerehavingthatillness\n```\n\n## Case Operations\n### camelcase\nConverts string to camel case\n#### Example\n##### Source\n```\nThe governments most creative and significant duty is education\n```\n##### Destination\n```\ntheGovernmentsMostCreativeAndSignificantDutyIsEducation\n```\n\n### capitalize\nCapitalizes each word\n#### Example\n##### Source\n```\nThe major challenge facing us is to elevate our national life to the highest level of civilization and prosperity\n```\n##### Destination\n```\nThe Major Challenge Facing Us Is To Elevate Our National Life To The Highest Level Of Civilization And Prosperity\n```\n\n### kebab-case\nConverts a string to kebab case and copies into clipboard\n#### Example\n##### Source\n```\nEvery nation as the right to demand proper treatment and no country should violate the territory of any other country.\n```\n##### Destination\n```\nevery-nation-as-the-right-to-demand-proper-treatment-and-no-country-should-violate-the-territory-of-any-other-country.\n```\n\n### lowercase\nLowercases the string\n#### Example\n##### Source\n```\nA nation which makes the final sacrifice for life and freedom does not get beaten.\n```\n##### Destination\n```\na nation which makes the final sacrifice for life and freedom does not get beaten.\n```\n\n### pascalcase\nPascalcases the string\n#### Example\n##### Source\n```\nEverything we see in the world is the creative work of women.\n\n```\n##### Destination\n```\nEverythingWeSeeInTheWorldIsTheCreativeWorkOfWomen.\n```\n\n## Validation\n\n### json.validate\nValidates if the string is a valid json. If not, copies \"false\" into clipboard\n\n## Collection Utils\n\n### listify\nConverts lines to a list representation\n#### Example\n##### Source\n```\n1922 Sultanate abolished (November 1).\n1923 Treaty of Lausanne secured (July 24). Republic of Turkey with capital at Ankara proclaimed (October 29).\n1924 Caliphate abolished (March 3). Traditional religious schools closed, Sheriat (Islamic Law) abolished. Constitution adopted (April 20).\n1925 Dervish brotherhoods abolished. Fez outlawed by the Hat Law (November 25). Veiling of women discouraged; Western clothing for men and women encouraged. Western (Gregorian) calendar adopted instead of Islamic calendar.\n1926 New civil, commercial, and penal codes based on European models adopted. New civil code ended Islamic polygamy and divorce by renunciation and introduced civil marriage. Millet system ended.\n1927 First systematic census.\n1928 New Turkish alphabet (modified Latin form) adopted. State declared secular (April 10); constitutional provision establishing Islam as official religion deleted.\n1933 Islamic call to worship and public readings of the Quran required to be in Turkish rather than Arabic.\n1934 Women given the vote and the right to hold office. Law of Surnames adopted - Mustafa Kemal given the name Kemal Atatürk (Father of the Turks) by the Grand National Assembly; Ismet Pasha took surname of Inönü.\n1935 Sunday adopted as legal weekly holiday. State role in managing economy written into the Constitution.\n```\n##### Destination\n```python\n[\n    \"1922 Sultanate abolished (November 1).\",\n    \"1923 Treaty of Lausanne secured (July 24). Republic of Turkey with capital at Ankara proclaimed (October 29).\",\n    \"1924 Caliphate abolished (March 3). Traditional religious schools closed, Sheriat (Islamic Law) abolished. Constitution adopted (April 20).\",\n    \"1925 Dervish brotherhoods abolished. Fez outlawed by the Hat Law (November 25). Veiling of women discouraged; Western clothing for men and women encouraged. Western (Gregorian) calendar adopted instead of Islamic calendar.\",\n    \"1926 New civil, commercial, and penal codes based on European models adopted. New civil code ended Islamic polygamy and divorce by renunciation and introduced civil marriage. Millet system ended.\",\n    \"1927 First systematic census.\",\n    \"1928 New Turkish alphabet (modified Latin form) adopted. State declared secular (April 10); constitutional provision establishing Islam as official religion deleted.\",\n    \"1933 Islamic call to worship and public readings of the Quran required to be in Turkish rather than Arabic.\",\n    \"1934 Women given the vote and the right to hold office. Law of Surnames adopted - Mustafa Kemal given the name Kemal Atat\\u00fcrk (Father of the Turks) by the Grand National Assembly; Ismet Pasha took surname of In\\u00f6n\\u00fc.\",\n    \"1935 Sunday adopted as legal weekly holiday. State role in managing economy written into the Constitution.\"\n]\n```\n\n\n### setify\nConverts lines to a set representation\n#### Example\n##### Source\n```\n1922 Sultanate abolished (November 1).\n1923 Treaty of Lausanne secured (July 24). Republic of Turkey with capital at Ankara proclaimed (October 29).\n1924 Caliphate abolished (March 3). Traditional religious schools closed, Sheriat (Islamic Law) abolished. Constitution adopted (April 20).\n1925 Dervish brotherhoods abolished. Fez outlawed by the Hat Law (November 25). Veiling of women discouraged; Western clothing for men and women encouraged. Western (Gregorian) calendar adopted instead of Islamic calendar.\n1926 New civil, commercial, and penal codes based on European models adopted. New civil code ended Islamic polygamy and divorce by renunciation and introduced civil marriage. Millet system ended.\n1927 First systematic census.\n1928 New Turkish alphabet (modified Latin form) adopted. State declared secular (April 10); constitutional provision establishing Islam as official religion deleted.\n1933 Islamic call to worship and public readings of the Quran required to be in Turkish rather than Arabic.\n1934 Women given the vote and the right to hold office. Law of Surnames adopted - Mustafa Kemal given the name Kemal Atatürk (Father of the Turks) by the Grand National Assembly; Ismet Pasha took surname of Inönü.\n1935 Sunday adopted as legal weekly holiday. State role in managing economy written into the Constitution.\n```\n##### Destination\n```python\n{\n    '1935 Sunday adopted as legal weekly holiday. State role in managing economy written into the Constitution.',\n    '1922 Sultanate abolished (November 1).',\n    '1923 Treaty of Lausanne secured (July 24). Republic of Turkey with capital at Ankara proclaimed (October 29).',\n    '1927 First systematic census.',\n    '1925 Dervish brotherhoods abolished. Fez outlawed by the Hat Law (November 25). Veiling of women discouraged; Western clothing for men and women encouraged. Western (Gregorian) calendar adopted instead of Islamic calendar.',\n    '1926 New civil, commercial, and penal codes based on European models adopted. New civil code ended Islamic polygamy and divorce by renunciation and introduced civil marriage. Millet system ended.',\n    '1933 Islamic call to worship and public readings of the Quran required to be in Turkish rather than Arabic.',\n    '1924 Caliphate abolished (March 3). Traditional religious schools closed, Sheriat (Islamic Law) abolished. Constitution adopted (April 20).',\n    '1928 New Turkish alphabet (modified Latin form) adopted. State declared secular (April 10); constitutional provision establishing Islam as official religion deleted.',\n    '1934 Women given the vote and the right to hold office. Law of Surnames adopted - Mustafa Kemal given the name Kemal Atatürk (Father of the Turks) by the Grand National Assembly; Ismet Pasha took surname of Inönü.'\n}\n\n```\n\n## Parsers\n### url.parse\nParses url into json\n#### Example\n##### Source\n```\nhttps://en.wikipedia.org/wiki/Atat%C3%BCrk%27s_Reforms?love=ataturk\n```\n##### Destination\n```json\n{\n    \"origin\": \"en.wikipedia.org\",\n    \"path\": \"/wiki/Atat%C3%BCrk%27s_Reforms\",\n    \"query\": {\n        \"love\": [\n            \"ataturk\"\n        ]\n    }\n}\n\n```\n\n### Other\n## dedup\nRemoves duplicate lines.\n#### Example\n##### Source\n```\nAtaturk\nMustafa\nKemal\nAtaturk\nAtaturk\nKemal\nKemal\n```\n##### Destination\n```\nAtaturk\nKemal\nMustafa\n```\n### sort\nSorts the lines\n#### Example\n##### Source\n```\nAtaturk\nMustafa\nKemal\nAtaturk\nAtaturk\nKemal\nKemal\n```\n##### Destination\n```\nAtaturk\nAtaturk\nAtaturk\nKemal\nKemal\nKemal\nMustafa\n```\n\n\n### trim\nTrims the lines\n#### Example\n##### Source\n```\n    Ataturk\n Mustafa\nKemal\nAtaturk \nAtaturk\n    Kemal\nKemal\n```\n##### Destination\n```\nAtaturk\nMustafa\nKemal\nAtaturk\nAtaturk\nKemal\nKemal\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffatih-yavuz%2Falfred-string-operations","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffatih-yavuz%2Falfred-string-operations","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffatih-yavuz%2Falfred-string-operations/lists"}