{"action":"opened","issue":{"url":"https://api.github.com/repos/leo-editor/leo-editor/issues/842","repository_url":"https://api.github.com/repos/leo-editor/leo-editor","labels_url":"https://api.github.com/repos/leo-editor/leo-editor/issues/842/labels{/name}","comments_url":"https://api.github.com/repos/leo-editor/leo-editor/issues/842/comments","events_url":"https://api.github.com/repos/leo-editor/leo-editor/issues/842/events","html_url":"https://github.com/leo-editor/leo-editor/issues/842","id":309210484,"number":842,"title":"Enhance command line option --select","user":{"login":"technatica","id":5809169,"avatar_url":"https://avatars2.githubusercontent.com/u/5809169?v=4","gravatar_id":"","url":"https://api.github.com/users/technatica","html_url":"https://github.com/technatica","followers_url":"https://api.github.com/users/technatica/followers","following_url":"https://api.github.com/users/technatica/following{/other_user}","gists_url":"https://api.github.com/users/technatica/gists{/gist_id}","starred_url":"https://api.github.com/users/technatica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/technatica/subscriptions","organizations_url":"https://api.github.com/users/technatica/orgs","repos_url":"https://api.github.com/users/technatica/repos","events_url":"https://api.github.com/users/technatica/events{/privacy}","received_events_url":"https://api.github.com/users/technatica/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-28T03:42:18Z","updated_at":"2018-03-28T03:42:18Z","closed_at":null,"author_association":"NONE","body":"Extending the idea behind:\r\n\r\n`leo ~/already_existing_file.leo --select knownNodeName`\r\n\r\nHow would I deliver a text payload to that selected node from the terminal?\r\n\r\nie. the current selection or an arbitrary string passed on the command line or even the current contents of the clipboard. Selectable would be best of course.\r\n\r\n`--selection, --string \" This string here.\", --clipboard`\r\n\r\nThe ultimate, I think, would be to spawn a standalone body editor with something like `leo --jot` with one or none of the above text payload methods and prompt on save for leo_filename, parent node (if any), and headLine (node created if not existing), with @file ../current_directory/leo_filename.txt as a reasonable default. \r\n\r\nSuppression of creation of or saving of the node to the Leo file should also be optional, allowing the saving of a text file directly by itself. \r\n\r\n`leo --text-only` \r\n\r\nWould this be a useful extension of the status quo? And before I get seriously started, am I missing a way to achieve this from current capabilities?\r\n\r\nChris"}}
{"actor":{"display_login":"technatica"}}