{"action":"created","issue":{"url":"https://api.github.com/repos/neovim/neovim/issues/3181","labels_url":"https://api.github.com/repos/neovim/neovim/issues/3181/labels{/name}","comments_url":"https://api.github.com/repos/neovim/neovim/issues/3181/comments","events_url":"https://api.github.com/repos/neovim/neovim/issues/3181/events","html_url":"https://github.com/neovim/neovim/pull/3181","id":101269167,"number":3181,"title":"[RFC] terminal: Fix program's name not always displayed","user":{"login":"Zashas","id":1949543,"avatar_url":"https://avatars.githubusercontent.com/u/1949543?v=3","gravatar_id":"","url":"https://api.github.com/users/Zashas","html_url":"https://github.com/Zashas","followers_url":"https://api.github.com/users/Zashas/followers","following_url":"https://api.github.com/users/Zashas/following{/other_user}","gists_url":"https://api.github.com/users/Zashas/gists{/gist_id}","starred_url":"https://api.github.com/users/Zashas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zashas/subscriptions","organizations_url":"https://api.github.com/users/Zashas/orgs","repos_url":"https://api.github.com/users/Zashas/repos","events_url":"https://api.github.com/users/Zashas/events{/privacy}","received_events_url":"https://api.github.com/users/Zashas/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/neovim/neovim/labels/:term","name":":term","color":"bfdadc"},{"url":"https://api.github.com/repos/neovim/neovim/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/neovim/neovim/milestones/5","html_url":"https://github.com/neovim/neovim/milestones/0.1-first-public-release","labels_url":"https://api.github.com/repos/neovim/neovim/milestones/5/labels","id":652241,"number":5,"title":"0.1-first-public-release","description":"beta release, codename: \"whoa\"","creator":{"login":"justinmk","id":1359421,"avatar_url":"https://avatars.githubusercontent.com/u/1359421?v=3","gravatar_id":"","url":"https://api.github.com/users/justinmk","html_url":"https://github.com/justinmk","followers_url":"https://api.github.com/users/justinmk/followers","following_url":"https://api.github.com/users/justinmk/following{/other_user}","gists_url":"https://api.github.com/users/justinmk/gists{/gist_id}","starred_url":"https://api.github.com/users/justinmk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinmk/subscriptions","organizations_url":"https://api.github.com/users/justinmk/orgs","repos_url":"https://api.github.com/users/justinmk/repos","events_url":"https://api.github.com/users/justinmk/events{/privacy}","received_events_url":"https://api.github.com/users/justinmk/received_events","type":"User","site_admin":false},"open_issues":51,"closed_issues":77,"state":"open","created_at":"2014-05-07T21:37:18Z","updated_at":"2015-08-31T06:59:26Z","due_on":"2015-10-31T04:00:00Z","closed_at":null},"comments":22,"created_at":"2015-08-16T14:29:20Z","updated_at":"2015-08-31T14:47:55Z","closed_at":"2015-08-30T21:26:12Z","pull_request":{"url":"https://api.github.com/repos/neovim/neovim/pulls/3181","html_url":"https://github.com/neovim/neovim/pull/3181","diff_url":"https://github.com/neovim/neovim/pull/3181.diff","patch_url":"https://github.com/neovim/neovim/pull/3181.patch"},"body":"Using a command like :e term://top displayed term://.//PID:(null) instead of term://.//PID:top as the buffer's name. Fixes #3113.\r\n\r\nThe former code in eval.c assumed that if a dictionnary was given to `termopen`, it had to include the parameter `name`, while the shortcut created in main.c, which enables the \"term:// protocol\", only passes `cwd` as parameter.\r\n\r\nNow `termopen` checks if `name` is indeed present before using it."},"comment":{"url":"https://api.github.com/repos/neovim/neovim/issues/comments/136395407","html_url":"https://github.com/neovim/neovim/pull/3181#issuecomment-136395407","issue_url":"https://api.github.com/repos/neovim/neovim/issues/3181","id":136395407,"user":{"login":"justinmk","id":1359421,"avatar_url":"https://avatars.githubusercontent.com/u/1359421?v=3","gravatar_id":"","url":"https://api.github.com/users/justinmk","html_url":"https://github.com/justinmk","followers_url":"https://api.github.com/users/justinmk/followers","following_url":"https://api.github.com/users/justinmk/following{/other_user}","gists_url":"https://api.github.com/users/justinmk/gists{/gist_id}","starred_url":"https://api.github.com/users/justinmk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinmk/subscriptions","organizations_url":"https://api.github.com/users/justinmk/orgs","repos_url":"https://api.github.com/users/justinmk/repos","events_url":"https://api.github.com/users/justinmk/events{/privacy}","received_events_url":"https://api.github.com/users/justinmk/received_events","type":"User","site_admin":false},"created_at":"2015-08-31T14:47:55Z","updated_at":"2015-08-31T14:47:55Z","body":"> If you run term:ls or term:cmd it executes the command then leaves the shell\r\n\r\nPerhaps that behavior should be changed.\r\n\r\n> Terminals are a new feature and we are defining how their URI is constructed.\r\n\r\n:+1: The URI structure may have room for improvement. Note that this is distinct from the ability to change the URI ad-hoc, which causes complication and inconsistency.\r\n\r\n> For example :term bash;ls would start a terminal with the bash shell then execute the ls command. Any commands that are then executed after that in the running bash shell would not be reflected in the URI.\r\n\r\nThat's true, but it would not be a good idea to change the buffer name on input. \r\n\r\n> extra slash currently being used between the CWD and PID?\r\n\r\nMaybe the hostname, and blank for localhost (haven't confirmed though).\r\n\r\n>   carrying out the work @fmoralesc started on buffer alias.\r\n\r\nI would recommend gathering consensus on a design before doing any work on that. Personally I am not in favor of any new \"alias\" feature, I would prefer to focus on solving more generalized problems for buffers: https://github.com/neovim/neovim/issues/901\r\n\r\nIt's _already_ possible to associate arbitrary data with buffers via `b:`, and access it via `getbufvar()`. The specific problem is getting the ecosystem (or at least the built-in tools) on board with showing the \"friendly name\" in the appropriate places. A special \"buffer alias\" feature wouldn't change this fact."}}