PlainTasks
PlainTasks copied to clipboard
Nested items do not move with parent item
Setup:
☐ Parent A
☐ Parent B
☐ Child 1
☐ Child 2
☐ Parent C
Steps:
- Put cursor on
Parent Bline - ⌘+control+up to move
Parent Bup one line
Result:
Parent B moves up, but now Child 1 and Child 2 are nested under Parent A, like so:
☐ Parent B
☐ Parent A
☐ Child 1
☐ Child 2
☐ Parent C
Expected:
Child 1 and Child 2 move with Parent B, like so:
☐ Parent B
☐ Child 1
☐ Child 2
☐ Parent A
☐ Parent C
NAVER - http://www.naver.com/
[email protected] 님께 보내신 메일 <[PlainTasks] Nested items do not move with parent item (#258)> 이 다음과 같은 이유로 전송 실패했습니다.
받는 사람이 회원님의 메일을 수신차단 하였습니다.
This feature is called "Swap Line Up" and is a core feature of Sublime Text. It does exactly what is says and move the current line up. If your selection spans multiple lines it will move each line up. It isn't meant to move an entire nested structure, and regardless of how helpful it may be within a plain tasks file it just isn't for most other file types. Feature consistency is very important.
What you should look for is an easy way to select the entire nested structure. Perhaps "Expand Selection to Scope" would be a good option. For this to work scope within a Plain Tasks file would need to be defined in such a way.
NAVER - http://www.naver.com/
[email protected] 님께 보내신 메일 <Re: [PlainTasks] Nested items do not move with parent item (#258)> 이 다음과 같은 이유로 전송 실패했습니다.
받는 사람이 회원님의 메일을 수신차단 하였습니다.
Perhaps "Expand Selection to Scope" would be a good option
There is ‘Expand Selection to Indentation’ which could be used while cursor is placed on a child item, then ‘Add Previous Line’ to include parent item.
Speaking of scope, I’m not a fan, because scopes in general is a hard topic, esp. multiline ones increase complexity of creating reliable definitions; making tasks block as one scope would need to include notes (as well as task), which already is multiline scope — unpredictable result is guaranteed; not to mention, that it is unknown how many hours one would spend, or will such attempt even successful at all, and finally, if it will be done then we will have to adjust Python code too in several places since it relies on scopes.
The idea to move children with parent line is interesting, and much easier to add than redefine scopes; consistency concern is fair, but we can use different keybinding or make it optional; if anyone is willing to implement feel free to send pull request, otherwise I’ll return to it in next year probably.
От: Robert McLeod Отправлено: вторник, 8 декабря 2015 г. 22:12 Кому: aziz/PlainTasks
This feature is called "Swap Line Up" and is a core feature of Sublime Text. It does exactly what is says and move the current line up. If your selection spans multiple lines it will move each line up. It isn't meant to move an entire nested structure, and regardless of how helpful it may be within a plain tasks file it just isn't for most other file types. Feature consistency is very important.
What you should look for is an easy way to select the entire nested structure. Perhaps "Expand Selection to Scope" would be a good option. For this to work scope within a Plain Tasks file would need to be defined in such a way.
— Reply to this email directly or view it on GitHub.